| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 7 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class VirtualPage extends HydePage |
||
| 21 | { |
||
| 22 | protected string $contents; |
||
| 23 | |||
| 24 | public static string $sourceDirectory = ''; |
||
| 25 | public static string $outputDirectory = ''; |
||
| 26 | public static string $fileExtension = ''; |
||
| 27 | |||
| 28 | public static function make(string $identifier = '', FrontMatter|array $matter = [], string $contents = ''): static |
||
| 29 | { |
||
| 30 | return new static($identifier, $matter, $contents); |
||
| 31 | } |
||
| 32 | |||
| 33 | public function __construct(string $identifier, FrontMatter|array $matter = [], string $contents = '') |
||
| 34 | { |
||
| 35 | parent::__construct($identifier, $matter); |
||
| 36 | |||
| 37 | $this->contents = $contents; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function contents(): string |
||
| 41 | { |
||
| 42 | return $this->contents; |
||
| 43 | } |
||
| 44 | |||
| 45 | public function compile(): string |
||
| 48 | } |
||
| 49 | } |
||
| 50 |