public function setMedia($media)
    {
        if (is_string($media)) {
            $this->media = $media;
        } else {
            $msg = "Media must be a string, '" . gettype($media) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setMedia($media)
    {
        if (is_string($media)) {
            $this->media = $media;
        } else {
            $msg = "Media must be a string, '" . gettype($media) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setMedia ( $ media ) { if ( is_string ( $ media ) ) { $ this -> media = $ media ; } else { $ msg = "Media must be a string, '" . gettype ( $ media ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the media to apply the stylesheet on.

@param string $media A media.
@throws \InvalidArgumentException If $media is not a string.
Set the media to apply the stylesheet on .