src/Crossjoin/Css/Format/Rule/AtCharset/CharsetRule.php
protected function setValue($value)
    {
        if (is_string($value)) {
            $value = trim($value);
            if ($value !== "") {
                $this->value = $value;
            } else {
                throw new \InvalidArgumentException("Invalid value for argument 'value' given.");
            }
        } else {
            throw new \InvalidArgumentException(
                "Invalid type '" . gettype($value) . "' for argument 'value' given. String expected."
            );
        }

        return $this;
    }
protected function setValue($value)
    {
        if (is_string($value)) {
            $value = trim($value);
            if ($value !== "") {
                $this->value = $value;
            } else {
                throw new \InvalidArgumentException("Invalid value for argument 'value' given.");
            }
        } else {
            throw new \InvalidArgumentException(
                "Invalid type '" . gettype($value) . "' for argument 'value' given. String expected."
            );
        }

        return $this;
    }
protected function setValue ( $ value ) { if ( is_string ( $ value ) ) { $ value = trim ( $ value ) ; if ( $ value !== "" ) { $ this -> value = $ value ; } else { throw new \ InvalidArgumentException ( "Invalid value for argument 'value' given." ) ; } } else { throw new \ InvalidArgumentException ( "Invalid type '" . gettype ( $ value ) . "' for argument 'value' given. String expected." ) ; } return $ this ; }
Sets the value for the charset rule.

@param string $value
@return $this
Sets the value for the charset rule .