1<?php
2/**
3 * Zend Framework (http://framework.zend.com/)
4 *
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
8 */
9
10namespace Zend\Feed\Reader\Collection;
11
12class Author extends AbstractCollection
13{
14    /**
15     * Return a simple array of the most relevant slice of
16     * the author values, i.e. all author names.
17     *
18     * @return array
19     */
20    public function getValues()
21    {
22        $authors = array();
23        foreach ($this->getIterator() as $element) {
24            $authors[] = $element['name'];
25        }
26        return array_unique($authors);
27    }
28}
29