You are here

public function Atom::getDescription in Zircon Profile 8

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

Get the feed description

Return value

string|null

Overrides FeedInterface::getDescription

File

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

Class

Atom

Namespace

Zend\Feed\Reader\Feed

Code

public function getDescription() {
  if (array_key_exists('description', $this->data)) {
    return $this->data['description'];
  }
  $description = $this
    ->getExtension('Atom')
    ->getDescription();
  if (!$description) {
    $description = null;
  }
  $this->data['description'] = $description;
  return $this->data['description'];
}