3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Feed\Reader\Collection;
12 class Author extends AbstractCollection
15 * Return a simple array of the most relevant slice of
16 * the author values, i.e. all author names.
20 public function getValues()
23 foreach ($this->getIterator() as $element) {
24 $authors[] = $element['name'];
26 return array_unique($authors);