Gc\View\Helper\Admin::__invoke PHP Метод

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

Retrieve the current admin
public __invoke ( ) : Model | boolean
Результат Gc\User\Model | boolean
    public function __invoke()
    {
        if ($this->auth->hasIdentity()) {
            return $this->auth->getIdentity();
        }
        return false;
    }