Brotkrueml\FeedGenerator\Contract\AttachmentInterface

interface Brotkrueml\FeedGenerator\Contract\AttachmentInterface

Interface for an attachment (enclosure). Used in RSS and JSON feeds.

getUrl()

Get the URL.

Return type

string

getType()

Get the type, for example "video/mp4". Return empty string to omit in output.

Return type

string

getLength()

Get the length in bytes. Return 0 to omit in output

Return type

int

Returns

max>