You are here

public function Atom::getAuthor in Zircon Profile 8.0

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

Get the specified author

Parameters

int $index:

Return value

string|null

Overrides EntryInterface::getAuthor

File

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

Class

Atom

Namespace

Zend\Feed\Reader\Entry

Code

public function getAuthor($index = 0) {
  $authors = $this
    ->getAuthors();
  if (isset($authors[$index])) {
    return $authors[$index];
  }
  return;
}