public function Entry::setContent in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/zendframework/zend-feed/src/Writer/Entry.php \Zend\Feed\Writer\Entry::setContent()
Set the entry's content
Parameters
string $content:
Return value
Throws
Exception\InvalidArgumentException
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Entry.php, line 165
Class
Namespace
Zend\Feed\WriterCode
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;
}