public function setMimeType($mimeType)
    {
        if (!in_array($mimeType, $this->knownMimetypes)) {
            throw new UnsupportedParameterException("I cannot handle mimetype '$mimeType', only " . implode(',', $this->knownMimetypes ));
        }

        $this->mimeType = $mimeType;

        return $this;
    }
public function setMimeType($mimeType)
    {
        if (!in_array($mimeType, $this->knownMimetypes)) {
            throw new UnsupportedParameterException("I cannot handle mimetype '$mimeType', only " . implode(',', $this->knownMimetypes ));
        }

        $this->mimeType = $mimeType;

        return $this;
    }
public function setMimeType ( $ mimeType ) { if ( ! in_array ( $ mimeType , $ this -> knownMimetypes ) ) { throw new UnsupportedParameterException ( "I cannot handle mimetype '$mimeType', only " . implode ( ',' , $ this -> knownMimetypes ) ) ; } $ this -> mimeType = $ mimeType ; return $ this ; }
Set the mimeType of this serializer.

@param string $mimeType

@return self
Set the mimeType of this serializer .