| Total Complexity | 4 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class Pages extends Facade |
||
| 17 | { |
||
| 18 | public static function getPage(string $sourcePath): HydePage |
||
| 19 | { |
||
| 20 | return static::getFacadeRoot()->get($sourcePath) ?? throw new FileNotFoundException(message: "Page [$sourcePath] not found in page collection"); |
||
| 21 | } |
||
| 22 | |||
| 23 | public static function getPages(?string $pageClass = null): PageCollection |
||
| 28 | } |
||
| 29 | |||
| 30 | /** @return \Hyde\Foundation\Kernel\PageCollection<string, \Hyde\Pages\Concerns\HydePage> */ |
||
| 31 | public static function getFacadeRoot(): PageCollection |
||
| 36 |