You are here

public function Feed::getEntry in Zircon Profile 8.0

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

Retrieve a specific indexed entry from the internal queue. Entries must be added to a feed container in order to be indexed.

Parameters

int $index:

Throws

Exception\InvalidArgumentException

File

vendor/zendframework/zend-feed/src/Writer/Feed.php, line 117

Class

Feed

Namespace

Zend\Feed\Writer

Code

public function getEntry($index = 0) {
  if (isset($this->entries[$index])) {
    return $this->entries[$index];
  }
  throw new Exception\InvalidArgumentException('Undefined index: ' . $index . '. Entry does not exist.');
}