Brotkrueml\FeedGenerator\Contract\ItemInterface

interface Brotkrueml\FeedGenerator\Contract\ItemInterface
getId()

Get a unique identifier associated with this item. These are optional so long as a link is added; i.e. if no identifier is provided, the link is used.

Return type

string

getTitle()

Get the title of the item.

Return type

string

getDescription()

Get the text description of the item.

Return type

string

getContent()

Get the content of the item. In JSON this is the HTML content.

Return type

string

Get a URI to the HTML website containing the same or similar information as this item (i.e. if the feed is from a blog, it should provide the blog article's URI where the HTML version of the entry can be read).

Return type

string

getAuthors()

Get the data for authors. In JSON only one author is possible.

Return type

array

getDatePublished()

Get the date on which this item was published. If null, the date used will be the current date and time.

Return type

DateTimeInterface

getDateModified()

Get the date on which this item was last modified. If null, the date used will be the current date and time.

Used in Atom and JSON.

Return type

DateTimeInterface

getEnclosure()

Get the enclosure. In accordance with the RSS Best Practices Profile of the RSS Advisory Board, no support is offered for multiple enclosures since such support forms no part of the RSS specification.

Return type

Brotkrueml\FeedGenerator\Contract\EnclosureInterface