Zend\Feed\Writer\Entry::setEnclosure
Adds an enclosure to the entry. The array parameter may contain the keys 'uri', 'type' and 'length'. Only 'uri' is required for Atom, though the others must also be provided or RSS rendering (where they are required) will throw an Exception.
Signature
public function setEnclosure(array
$enclosure )
Parameters
$enclosure
— array
Returns
- Entry