Brotkrueml\FeedGenerator\Contract\AttachmentInterface

interface AttachmentInterface
Fully qualified name
\Brotkrueml\FeedGenerator\Contract\AttachmentInterface

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

getUrl ( )

Get the URL.

returntype

string

getType ( )

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

returntype

string

getLength ( )

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

returntype

int

Returns

max>