src/Crossjoin/Css/Format/Rule/TraitConditions.php
public function setConditions($conditions)
    {
        $this->conditions = [];
        if (!is_array($conditions)) {
            $conditions = [$conditions];
        }
        foreach ($conditions as $condition) {
            $this->addCondition($condition);
        }

        return $this;
    }
public function setConditions($conditions)
    {
        $this->conditions = [];
        if (!is_array($conditions)) {
            $conditions = [$conditions];
        }
        foreach ($conditions as $condition) {
            $this->addCondition($condition);
        }

        return $this;
    }
public function setConditions ( $ conditions ) { $ this -> conditions = [ ] ; if ( ! is_array ( $ conditions ) ) { $ conditions = [ $ conditions ] ; } foreach ( $ conditions as $ condition ) { $ this -> addCondition ( $ condition ) ; } return $ this ; }
Sets the conditions.

@param ConditionAbstract[]|ConditionAbstract $conditions
@return $this
Sets the conditions .