Stevemo\Cpanel\User\Repo\UserRepository::getUserThrottle PHP Метод

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

Get the throttle provider for a given user
Автор: Steve Montambeault
public getUserThrottle ( $id ) : Cartalyst\Sentry\Throttling\ThrottleInterface
$id
Результат Cartalyst\Sentry\Throttling\ThrottleInterface
    public function getUserThrottle($id)
    {
        try {
            return $this->sentry->findThrottlerByUserId($id);
        } catch (SentryUserNotFoundException $e) {
            throw new UserNotFoundException($e->getMessage());
        }
    }