You are here

public function Atom::getCopyright in Zircon Profile 8.0

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

Get the copyright entry

Return value

string|null

Overrides FeedInterface::getCopyright

File

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

Class

Atom

Namespace

Zend\Feed\Reader\Feed

Code

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