Back to Document class

Method setDescription

public \Joomla\CMS\Document\Document
setDescription
(mixed $description)
Sets the description of the document
Parameters
  • string $description The description to set
Returns
  • \Joomla\CMS\Document\Document instance of $this to allow chaining
Since
  • 1.7.0
Class: Document
Project: Joomla

Method setDescription - Source code

/**
 * Sets the description of the document
 *
 * @param   string  $description  The description to set
 *
 * @return  Document instance of $this to allow chaining
 *
 * @since   1.7.0
 */
public function setDescription($description)
{
    $this->description = $description;
    return $this;
}