Completed
Push — master ( ec2f81...11966d )
by adam
03:28
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 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 22
ccs 0
cts 6
cp 0
rs 10

2 Methods

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