| 1 | <?php |
||
| 9 | class Page implements Extension |
||
| 10 | { |
||
| 11 | private $pageParser; |
||
| 12 | |||
| 13 | public function __construct(PageParser $pageParser) |
||
| 14 | { |
||
| 15 | $this->pageParser = $pageParser; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function name(): string |
||
| 19 | { |
||
| 20 | return '_page'; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function isActive(string $part): bool |
||
| 27 | |||
| 28 | public function isCurrent(string $part): bool |
||
| 38 | |||
| 39 | public function current(): ?SitePage |
||
| 43 | } |
||
| 44 |