1 | <?php |
||
22 | class WebHelperRepository |
||
23 | { |
||
24 | /** @var Finder a Finder instance */ |
||
25 | private $finder; |
||
26 | |||
27 | /** @var VersionParser a VersionParser instance */ |
||
28 | private $versionParser; |
||
29 | |||
30 | /** @var array a structured array of a directives repository */ |
||
31 | private $memoize = []; |
||
32 | |||
33 | /** @var Twig_Environment a Twig_Environment instance */ |
||
34 | private $twig = null; |
||
35 | |||
36 | /** |
||
37 | * Base constructor. |
||
38 | * |
||
39 | * @param string $resDir the Path of a Directives Repository |
||
40 | */ |
||
41 | 10 | public function __construct($resDir) |
|
50 | |||
51 | /** |
||
52 | * Initialize the Twig Environment. |
||
53 | * |
||
54 | * @param string $resDir the Path of a Directives Repository |
||
55 | * |
||
56 | * @return Twig_Environment the Twig Environment |
||
57 | */ |
||
58 | 9 | private function initialize($resDir) |
|
72 | |||
73 | /** |
||
74 | * Initialize the structured array of a directives repository. |
||
75 | * |
||
76 | * @param string $resDir the Path of a Directives Repository |
||
77 | * |
||
78 | * @return array the structured array of a directives repository |
||
79 | */ |
||
80 | 9 | private function memoize($resDir) |
|
103 | |||
104 | /** |
||
105 | * Gets the structured array of a directives repository. |
||
106 | * |
||
107 | * @return array the structured array of a directives repository |
||
108 | */ |
||
109 | 4 | public function getMemoize() |
|
113 | |||
114 | /** |
||
115 | * Gets the Twig Environment. |
||
116 | * |
||
117 | * @return Twig_Environment the Twig Environment |
||
118 | */ |
||
119 | 4 | public function getTwig() |
|
123 | |||
124 | /** |
||
125 | * Tells if the Repository can be used. |
||
126 | * |
||
127 | * @return bool true if there are some directives in the Path of a Directives Repository |
||
128 | */ |
||
129 | 6 | public function okGo() |
|
133 | } |
||
134 |