1 | <?php |
||
32 | class InclusionDirective extends BlockDirective implements DirectiveInterface |
||
33 | { |
||
34 | /** @var \WebHelper\Parser\Compiler the compiler instance */ |
||
35 | private $compiler; |
||
36 | |||
37 | /** @var array file list pointed with that directive */ |
||
38 | private $files = []; |
||
39 | |||
40 | /** |
||
41 | * Specific constructor for inclusion directives. |
||
42 | * |
||
43 | * @param string $name the name of the key/context |
||
44 | * @param string $value the value of the key/context |
||
45 | * @param \WebHelper\Parser\Compiler $compiler the compiler instance |
||
46 | */ |
||
47 | 4 | public function __construct($name, $value, Compiler $compiler) |
|
54 | |||
55 | /** |
||
56 | * Gets the detected files of the directive. |
||
57 | * |
||
58 | * @return array detected files |
||
59 | */ |
||
60 | 3 | public function getFiles() |
|
64 | |||
65 | /** |
||
66 | * Detects and memoizes the included files. |
||
67 | */ |
||
68 | 4 | public function setFiles() |
|
84 | |||
85 | 4 | public function compileFiles() |
|
92 | } |
||
93 |