public function Feed::getEntry in Zircon Profile 8.0
Same name and namespace in other branches
- 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
Namespace
Zend\Feed\WriterCode
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.');
}