1 | <?php |
||
25 | class ConditionParserFactory implements SingletonInterface |
||
26 | { |
||
27 | /** |
||
28 | * @var ConditionParserFactory |
||
29 | */ |
||
30 | private static $instance; |
||
31 | |||
32 | /** |
||
33 | * @var ConditionTree[] |
||
34 | */ |
||
35 | private $trees = []; |
||
36 | |||
37 | /** |
||
38 | * @return ConditionParserFactory |
||
39 | */ |
||
40 | public static function get() |
||
48 | |||
49 | /** |
||
50 | * Will parse a condition expression, to build a tree containing one or |
||
51 | * several nodes which represent the condition. See the class |
||
52 | * `ConditionTree` for more information. |
||
53 | * |
||
54 | * @param ActivationInterface $condition The condition instance. |
||
55 | * @return ConditionTree |
||
56 | */ |
||
57 | public function parse(ActivationInterface $condition) |
||
71 | |||
72 | /** |
||
73 | * @param string $cacheIdentifier |
||
74 | * @param ActivationInterface $condition |
||
75 | * @return ConditionTree |
||
76 | */ |
||
77 | protected function getConditionTree($cacheIdentifier, ActivationInterface $condition) |
||
91 | } |
||
92 |