Back to Document class

Method setType

public \Joomla\CMS\Document\Document
setType
(mixed $type)
Set the document type
Parameters
  • string $type Type document is to set to
Returns
  • \Joomla\CMS\Document\Document instance of $this to allow chaining
Since
  • 1.7.0
Class: Document
Project: Joomla

Method setType - Source code

/**
 * Set the document type
 *
 * @param   string  $type  Type document is to set to
 *
 * @return  Document instance of $this to allow chaining
 *
 * @since   1.7.0
 */
public function setType($type)
{
    $this->_type = $type;
    return $this;
}