Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | final class TemplateDir |
||
19 | { |
||
20 | /** @var string */ |
||
21 | private $templateDir; |
||
22 | |||
23 | private function __construct(string $templateDir) |
||
24 | { |
||
25 | Assertion::string($templateDir, 'The template dir has to be a string'); |
||
26 | |||
27 | $this->templateDir = $templateDir; |
||
28 | } |
||
29 | |||
30 | public function __toString(): string |
||
33 | } |
||
34 | |||
35 | public static function fromString(string $templateDir): self |
||
38 | } |
||
39 | } |
||
40 |