public function parse(ActivationInterface $activation)
    {
        $hash = 'condition-tree-' .
            HashService::get()->getHash(serialize([
                $activation->getExpression(),
                $activation->getConditions()
            ]));

        if (false === array_key_exists($hash, $this->trees)) {
            $this->trees[$hash] = $this->getConditionTree($hash, $activation);
        }

        return $this->trees[$hash];
    }
public function parse(ActivationInterface $activation)
    {
        $hash = 'condition-tree-' .
            HashService::get()->getHash(serialize([
                $activation->getExpression(),
                $activation->getConditions()
            ]));

        if (false === array_key_exists($hash, $this->trees)) {
            $this->trees[$hash] = $this->getConditionTree($hash, $activation);
        }

        return $this->trees[$hash];
    }
public function parse ( ActivationInterface $ activation ) { $ hash = 'condition-tree-' . HashService :: get ( ) -> getHash ( serialize ( [ $ activation -> getExpression ( ) , $ activation -> getConditions ( ) ] ) ) ; if ( false === array_key_exists ( $ hash , $ this -> trees ) ) { $ this -> trees [ $ hash ] = $ this -> getConditionTree ( $ hash , $ activation ) ; } return $ this -> trees [ $ hash ] ; }
Will parse a condition expression, to build a tree containing one or
several nodes which represent the condition. See the class
`ConditionTree` for more information.

@param ActivationInterface $activation
@return ConditionTree
Will parse a condition expression to build a tree containing one or several nodes which represent the condition . See the class ConditionTree for more information .