Completed
Pull Request — master (#58)
by Sam
01:40 queued 38s
created

CategoryLoopException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 22
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setCategoryPath() 0 3 1
A getCategoryPath() 0 3 1
1
<?php
2
3
namespace Addwiki\MediaWikiApi;
4
5
use Mediawiki\DataModel\Pages;
6
7
/**
8
 * Class CategoryLoopException
9
 */
10
class CategoryLoopException extends \Exception {
11
12
	/** @var Pages */
13
	protected $categoryPath;
14
15
	/**
16
	 * @param Pages $path
17
	 */
18
	public function setCategoryPath( Pages $path ) {
19
		$this->categoryPath = $path;
20
	}
21
22
	/**
23
	 * Get the path of Pages that comprise the category loop. The first item in this list is also a
24
	 * child page of the last item.
25
	 * @return Pages The set of category Pages that comprise the category loop.
26
	 */
27
	public function getCategoryPath() {
28
		return $this->categoryPath;
29
	}
30
31
}
32