public function getActivationConditionTreeForValidation(Validation $validation)
    {
        $key = $validation->getParentField()->getName() . '->' . $validation->getName();

        if (false === array_key_exists($key, $this->validationsTrees)) {
            $this->validationsTrees[$key] = $this->getConditionTree($validation->getActivation());
        }

        $this->validationsTrees[$key]->injectDependencies($this, $validation->getActivation());

        return $this->validationsTrees[$key];
    }
public function getActivationConditionTreeForValidation(Validation $validation)
    {
        $key = $validation->getParentField()->getName() . '->' . $validation->getName();

        if (false === array_key_exists($key, $this->validationsTrees)) {
            $this->validationsTrees[$key] = $this->getConditionTree($validation->getActivation());
        }

        $this->validationsTrees[$key]->injectDependencies($this, $validation->getActivation());

        return $this->validationsTrees[$key];
    }
public function getActivationConditionTreeForValidation ( Validation $ validation ) { $ key = $ validation -> getParentField ( ) -> getName ( ) . '->' . $ validation -> getName ( ) ; if ( false === array_key_exists ( $ key , $ this -> validationsTrees ) ) { $ this -> validationsTrees [ $ key ] = $ this -> getConditionTree ( $ validation -> getActivation ( ) ) ; } $ this -> validationsTrees [ $ key ] -> injectDependencies ( $ this , $ validation -> getActivation ( ) ) ; return $ this -> validationsTrees [ $ key ] ; }
Returns the condition tree for a given validation instance, giving access
to CSS, JavaScript and PHP transpiled results.

@param Validation $validation
@return ConditionTree
Returns the condition tree for a given validation instance giving access to CSS JavaScript and PHP transpiled results .