Newscoop\Services\AuthorService::getOptions PHP Метод

getOptions() публичный Метод

Get author options
public getOptions ( ) : array
Результат array
    public function getOptions()
    {
        $authors = array();
        foreach ($this->repository->findBy(array(), array('last_name' => 'asc', 'first_name' => 'asc')) as $author) {
            $authors[$author->getId()] = $author->getFullName();
        }
        return $authors;
    }