| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class BladePage extends HydePage |
||
| 22 | { |
||
| 23 | public static string $sourceDirectory = '_pages'; |
||
| 24 | public static string $outputDirectory = ''; |
||
| 25 | public static string $fileExtension = '.blade.php'; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * The name of the Blade View to compile. Commonly stored in _pages/{$identifier}.blade.php. |
||
| 29 | */ |
||
| 30 | public string $view; |
||
| 31 | |||
| 32 | public function __construct(string $view = '', FrontMatter|array $matter = []) |
||
| 33 | { |
||
| 34 | parent::__construct($view, $matter); |
||
| 35 | $this->view = $view; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** @inheritDoc */ |
||
| 39 | public function getBladeView(): string |
||
| 40 | { |
||
| 41 | return $this->view; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** @inheritDoc */ |
||
| 45 | public function compile(): string |
||
| 48 | } |
||
| 49 | |||
| 50 | public function toArray(): array |
||
| 54 | ]); |
||
| 55 | } |
||
| 57 |