You are here

public function Atom::getSource in Zircon Profile 8.0

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

Get source feed metadata from the entry

Return value

Reader\Feed\Atom\Source|null

File

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

Class

Atom

Namespace

Zend\Feed\Reader\Entry

Code

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