public function setType($type)
    {
        if (gettype($type) === 'string') {
            $this->type = $type;
        } else {
            $msg = "Type must be a string, '" . gettype($type) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setType($type)
    {
        if (gettype($type) === 'string') {
            $this->type = $type;
        } else {
            $msg = "Type must be a string, '" . gettype($type) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setType ( $ type ) { if ( gettype ( $ type ) === 'string' ) { $ this -> type = $ type ; } else { $ msg = "Type must be a string, '" . gettype ( $ type ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the mime-type of the stylesheet.

@param string $type A mime-type.
@throws \InvalidArgumentException If $type is not a string.
Set the mime - type of the stylesheet .