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 | 7 | public function __construct($resDir) |
|
50 | |||
51 | /** |
||
52 | * Initialize the Twig Environment. |
||
53 | * |
||
54 | * @param string $resDir the Path of a Directives Repository |
||
55 | * @return Twig_Environment the Twig Environment |
||
56 | */ |
||
57 | 6 | private function initialize($resDir) |
|
71 | |||
72 | /** |
||
73 | * Initialize the structured array of a directives repository. |
||
74 | * |
||
75 | * @param string $resDir the Path of a Directives Repository |
||
76 | * @return array the structured array of a directives repository |
||
77 | */ |
||
78 | 6 | private function memoize($resDir) |
|
101 | |||
102 | /** |
||
103 | * Gets the structured array of a directives repository. |
||
104 | * |
||
105 | * @return array the structured array of a directives repository |
||
106 | */ |
||
107 | 2 | public function getMemoize() |
|
111 | |||
112 | /** |
||
113 | * Gets the Twig Environment. |
||
114 | * |
||
115 | * @return Twig_Environment the Twig Environment |
||
116 | */ |
||
117 | 2 | public function getTwig() |
|
121 | |||
122 | /** |
||
123 | * Tells if the Repository can be used. |
||
124 | * |
||
125 | * @return boolean true if there are some directives in the Path of a Directives Repository |
||
126 | */ |
||
127 | 4 | public function okGo() |
|
131 | } |
||
132 |