You are here

public function AbstractFeed::getAuthor in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/Writer/AbstractFeed.php \Zend\Feed\Writer\AbstractFeed::getAuthor()

Get a single author

Parameters

int $index:

Return value

string|null

File

vendor/zendframework/zend-feed/src/Writer/AbstractFeed.php, line 528

Class

AbstractFeed

Namespace

Zend\Feed\Writer

Code

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