public function setMIMEType(string $mimetype)
    {
        if ($this->discoverInterface()) {
            $this->nb_interface->setMIMEType($mimetype);
        } else {
            throw new ENabuRenderException(
                ENabuRenderException::ERROR_RENDER_NOT_FOUND,
                array($this->nb_descriptor->getKey())
            );
        }

        return $this;
    }
public function setMIMEType(string $mimetype)
    {
        if ($this->discoverInterface()) {
            $this->nb_interface->setMIMEType($mimetype);
        } else {
            throw new ENabuRenderException(
                ENabuRenderException::ERROR_RENDER_NOT_FOUND,
                array($this->nb_descriptor->getKey())
            );
        }

        return $this;
    }
public function setMIMEType ( string $ mimetype ) { if ( $ this -> discoverInterface ( ) ) { $ this -> nb_interface -> setMIMEType ( $ mimetype ) ; } else { throw new ENabuRenderException ( ENabuRenderException :: ERROR_RENDER_NOT_FOUND , array ( $ this -> nb_descriptor -> getKey ( ) ) ) ; } return $ this ; }
Pass MIME Type to Render Instance.
@param string $mimetype MIME Type to be setted.
@return CNabuRenderFactory Returns self pointer to grant chained setter calls.
@throws ENabuRenderException Raises an exception if the Render Interface is not setted.
Pass MIME Type to Render Instance .