src/ConditionBlock.php
/**
     * Adds new conditions to the existing ones
     */
Adds new conditions to the existing ones
Adds new conditions to the existing ones
public function append($condition)
    {
        if(is_array($condition)){
            foreach($condition as $key => $value){
                $this->conditions->push($this->parseKeyValueCondition($key, $value));
            }
        } else {
            $this->conditions->push($condition);
        }
    }
public function append ( $ condition ) { if ( is_array ( $ condition ) ) { foreach ( $ condition as $ key => $ value ) { $ this -> conditions -> push ( $ this -> parseKeyValueCondition ( $ key , $ value ) ) ; } } else { $ this -> conditions -> push ( $ condition ) ; } }
Adds new conditions to the existing ones
Adds new conditions to the existing ones