| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 53 | public function parse(ActivationInterface $condition) |
||
| 54 | { |
||
| 55 | $hash = sha1(serialize([ |
||
| 56 | $condition->getCondition(), |
||
| 57 | $condition->getItems() |
||
| 58 | ])); |
||
| 59 | |||
| 60 | if (false === array_key_exists($hash, $this->trees)) { |
||
| 61 | $this->trees[$hash] = ConditionParser::get()->parse($condition); |
||
| 62 | } |
||
| 63 | |||
| 64 | return $this->trees[$hash]; |
||
| 65 | } |
||
| 66 | } |
||
| 67 |