You are here

public function Rss::getAuthor in Zircon Profile 8

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

Get a single author

Parameters

int $index:

Return value

string|null

Overrides FeedInterface::getAuthor

File

vendor/zendframework/zend-feed/src/Reader/Feed/Rss.php, line 64

Class

Rss

Namespace

Zend\Feed\Reader\Feed

Code

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