Completed
Push — main ( 2daa48...b5d932 )
by
unknown
08:38
created

CategoryLoopException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 22
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Addwiki\Mediawiki\Api;
4
5
use Addwiki\Mediawiki\DataModel\Pages;
6
use Exception;
7
8
/**
9
 * Class CategoryLoopException
10
 * @package Addwiki\Mediawiki\Api
11
 */
12
class CategoryLoopException extends Exception {
13
14
	protected ?Pages $categoryPath = null;
0 ignored issues
show
Bug introduced by
This code did not parse for me. Apparently, there is an error somewhere around this line:

Syntax error, unexpected '?', expecting T_FUNCTION or T_CONST
Loading history...
15
16
	/**
17
	 * @param Pages $path
18
	 */
19
	public function setCategoryPath( Pages $path ): void {
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(): Pages {
29
		return $this->categoryPath;
30
	}
31
32
}
33