class FeedItem

Data object representing a feed item

Properties

string $title Title item element
Link item element
string $description Description item element
string $author Author item element
string $authorEmail Author email element
array $category Category element
string $comments Comments element
FeedEnclosure $enclosure Enclosure element
string $guid Guid element
string $date Published date
string $source Source element

Methods

setEnclosure( FeedEnclosure $enclosure)

Set the FeedEnclosure for this item

Details

FeedItem setEnclosure( FeedEnclosure $enclosure)

Set the FeedEnclosure for this item

Parameters

FeedEnclosure $enclosure The FeedEnclosure to add to the feed.

Return Value

FeedItem instance of $this to allow chaining