You are here

public function Entry::setContent 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::setContent()

Set the entry's content

Parameters

string $content:

Return value

Entry

Throws

Exception\InvalidArgumentException

File

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

Class

Entry

Namespace

Zend\Feed\Writer

Code

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