You are here

public function Entry::setDescription in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/Writer/Entry.php \Zend\Feed\Writer\Entry::setDescription()

Set the feed description

Parameters

string $description:

Return value

Entry

Throws

Exception\InvalidArgumentException

File

vendor/zendframework/zend-feed/src/Writer/Entry.php, line 224

Class

Entry

Namespace

Zend\Feed\Writer

Code

public function setDescription($description) {
  if (empty($description) || !is_string($description)) {
    throw new Exception\InvalidArgumentException('Invalid parameter: parameter must be a non-empty string');
  }
  $this->data['description'] = $description;
  return $this;
}