⇦ Back to FeedItem classMethod setEnclosure
public \Joomla\CMS\Document\Feed\FeedItem
setEnclosure
(\Joomla\CMS\Document\Feed\FeedEnclosure $enclosure)
Set the FeedEnclosure for this item
Parameters
- \Joomla\CMS\Document\Feed\FeedEnclosure $enclosure The FeedEnclosure to add to the feed.
Returns
- \Joomla\CMS\Document\Feed\FeedItem instance of $this to allow chaining
Since
Method setEnclosure - Source code
/**
* Set the FeedEnclosure for this item
*
* @param FeedEnclosure $enclosure The FeedEnclosure to add to the feed.
*
* @return FeedItem instance of $this to allow chaining
*
* @since 1.7.0
*/
public function setEnclosure(FeedEnclosure $enclosure)
{
$this->enclosure = $enclosure;
return $this;
}