src/Crossjoin/Css/Format/StyleSheet/StyleSheet.php
public function setCharset($charset)
    {
        if (is_string($charset)) {
            if (in_array($charset, mb_list_encodings())) {
                $this->charset = $charset;
            } else {
                throw new \InvalidArgumentException(
                    "Invalid value '" . $charset . "' for argument 'charset' given. Charset not supported."
                );
            }
        } else {
            throw new \InvalidArgumentException(
                "Invalid type '" . gettype($charset). "' for argument 'charset' given."
            );
        }

        return $this;
    }
public function setCharset($charset)
    {
        if (is_string($charset)) {
            if (in_array($charset, mb_list_encodings())) {
                $this->charset = $charset;
            } else {
                throw new \InvalidArgumentException(
                    "Invalid value '" . $charset . "' for argument 'charset' given. Charset not supported."
                );
            }
        } else {
            throw new \InvalidArgumentException(
                "Invalid type '" . gettype($charset). "' for argument 'charset' given."
            );
        }

        return $this;
    }
public function setCharset ( $ charset ) { if ( is_string ( $ charset ) ) { if ( in_array ( $ charset , mb_list_encodings ( ) ) ) { $ this -> charset = $ charset ; } else { throw new \ InvalidArgumentException ( "Invalid value '" . $ charset . "' for argument 'charset' given. Charset not supported." ) ; } } else { throw new \ InvalidArgumentException ( "Invalid type '" . gettype ( $ charset ) . "' for argument 'charset' given." ) ; } return $ this ; }
Sets the charset for the style sheet.

@param string $charset
@return $this
Sets the charset for the style sheet .