public function getCondition($name)
    {
        if (false === $this->hasCondition($name)) {
            throw EntryNotFoundException::activationConditionNotFound($name);
        }

        $items = $this->getConditions();

        return $items[$name];
    }
public function getCondition($name)
    {
        if (false === $this->hasCondition($name)) {
            throw EntryNotFoundException::activationConditionNotFound($name);
        }

        $items = $this->getConditions();

        return $items[$name];
    }
public function getCondition ( $ name ) { if ( false === $ this -> hasCondition ( $ name ) ) { throw EntryNotFoundException :: activationConditionNotFound ( $ name ) ; } $ items = $ this -> getConditions ( ) ; return $ items [ $ name ] ; }
Return the condition with the given name.

@param string $name Name of the item.
@return ConditionItemInterface
@throws EntryNotFoundException
Return the condition with the given name .