1 | <?php |
||
23 | class IncludeDelegate extends Rule |
||
24 | { |
||
25 | /** |
||
26 | * @var string[] |
||
27 | */ |
||
28 | private const FILE_EXTENSIONS = ['', '.pp', '.pp2']; |
||
29 | |||
30 | /** |
||
31 | * @var Readable |
||
32 | */ |
||
33 | private $file; |
||
34 | |||
35 | /** |
||
36 | * IncludeDelegate constructor. |
||
37 | * @param Environment $env |
||
38 | * @param string $name |
||
39 | * @param array $children |
||
40 | * @param int $offset |
||
41 | */ |
||
42 | public function __construct(Environment $env, string $name, array $children = [], int $offset = 0) |
||
47 | |||
48 | /** |
||
49 | * @return Readable |
||
50 | * @throws \Railt\Io\Exception\ExternalFileException |
||
51 | */ |
||
52 | public function getFile(): Readable |
||
71 | |||
72 | /** |
||
73 | * @return string |
||
74 | */ |
||
75 | private function getIncludePathname(): string |
||
81 | |||
82 | /** |
||
83 | * @return string |
||
84 | */ |
||
85 | private function getIncludeValue(): string |
||
92 | } |
||
93 |