FeedWriter\Item::setContent PHP Méthode

setContent() public méthode

Set the 'content' element of the feed item For ATOM feeds only
public setContent ( string $content ) : self
$content string Content for the item (i.e., the body of a blog post).
Résultat self
    public function setContent($content)
    {
        if ($this->version != Feed::ATOM) {
            throw new InvalidOperationException('The content element is supported in ATOM feeds only.');
        }
        return $this->addElement('content', $content, array('type' => 'html'));
    }