You are here

public function Atom::getEnclosure in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/Entry/Atom.php \Zend\Feed\Reader\Entry\Atom::getEnclosure()

Get the entry enclosure

Return value

string

Overrides EntryInterface::getEnclosure

File

vendor/zendframework/zend-feed/src/Reader/Entry/Atom.php, line 163

Class

Atom

Namespace

Zend\Feed\Reader\Entry

Code

public function getEnclosure() {
  if (array_key_exists('enclosure', $this->data)) {
    return $this->data['enclosure'];
  }
  $enclosure = $this
    ->getExtension('Atom')
    ->getEnclosure();
  $this->data['enclosure'] = $enclosure;
  return $this->data['enclosure'];
}