1 | <?php |
||
12 | class CategoryLoopException extends Exception { |
||
13 | |||
14 | protected ?Pages $categoryPath = null; |
||
|
|||
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 |