src/Crossjoin/Css/Format/Rule/AtMedia/MediaQuery.php
public function addCondition(ConditionAbstract $condition)
    {
        if ($condition instanceof MediaCondition) {
            $this->conditions[] = $condition;
        } else {
            throw new \InvalidArgumentException(
                "Invalid condition instance. Instance of 'MediaCondition' expected."
            );
        }

        return $this;
    }
public function addCondition(ConditionAbstract $condition)
    {
        if ($condition instanceof MediaCondition) {
            $this->conditions[] = $condition;
        } else {
            throw new \InvalidArgumentException(
                "Invalid condition instance. Instance of 'MediaCondition' expected."
            );
        }

        return $this;
    }
public function addCondition ( ConditionAbstract $ condition ) { if ( $ condition instanceof MediaCondition ) { $ this -> conditions [ ] = $ condition ; } else { throw new \ InvalidArgumentException ( "Invalid condition instance. Instance of 'MediaCondition' expected." ) ; } return $ this ; }
Adds a media rule condition.

@param MediaCondition $condition
@return $this
Adds a media rule condition .