/** * @param string $userModelName * @return void */ public function __construct($userModelName = null) { parent::__construct(); $this->_userModelName = $userModelName = $userModelName ? $userModelName : '\\Auth\\Model\\User'; $interfaces = class_implements($userModelName); if (!in_array('Auth\\Model\\UserInterface', $interfaces)) { throw new \Exception('Model ' . $userModelName . ' should implements interface \\Auth\\Model\\UserInterface'); } }
/** * @param array $users * @return void */ public function __construct(array $users = null) { parent::__construct(); $this->_users = $users; }