Newscoop\Services\UserTypeService::getOptions PHP 메소드

getOptions() 공개 메소드

Get user type options
public getOptions ( ) : array
리턴 array
    public function getOptions()
    {
        $options = array();
        foreach ($this->getRepository()->findAll() as $userType) {
            $options[$userType->getId()] = $userType->getName();
        }
        return $options;
    }