Cartalyst\Sentinel\Throttling\IlluminateThrottleRepository::getUserThrottles PHP Méthode

getUserThrottles() protected méthode

Returns the user throttles collection.
protected getUserThrottles ( Cartalyst\Sentinel\Users\UserInterface $user ) : Illuminate\Database\Eloquent\Collection
$user Cartalyst\Sentinel\Users\UserInterface
Résultat Illuminate\Database\Eloquent\Collection
    protected function getUserThrottles(UserInterface $user)
    {
        $key = $user->getUserId();
        if (!array_key_exists($key, $this->userThrottles)) {
            $this->userThrottles[$key] = $this->loadUserThrottles($user);
        }
        return $this->userThrottles[$key];
    }