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

CategoryLoopException::getCategoryPath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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