public function addCondition($name, $options)
    {
        if ($this instanceof DataAccessInterface) {
            $condition = ConditionFactory::factory($name, $options);
            $condition->setDecorator($this);
            $this->attachCondition($condition);
            return $this;
        }
    }
public function addCondition($name, $options)
    {
        if ($this instanceof DataAccessInterface) {
            $condition = ConditionFactory::factory($name, $options);
            $condition->setDecorator($this);
            $this->attachCondition($condition);
            return $this;
        }
    }
public function addCondition ( $ name , $ options ) { if ( $ this instanceof DataAccessInterface ) { $ condition = ConditionFactory :: factory ( $ name , $ options ) ; $ condition -> setDecorator ( $ this ) ; $ this -> attachCondition ( $ condition ) ; return $ this ; } }
Add new condition to decorator

@param string $name
@param array $options
@return $this|null
Add new condition to decorator