Cartalyst\Sentinel\Throttling\IlluminateThrottleRepository::getUserThrottles PHP Method

getUserThrottles() protected method

Returns the user throttles collection.
protected getUserThrottles ( Cartalyst\Sentinel\Users\UserInterface $user ) : Illuminate\Database\Eloquent\Collection
$user Cartalyst\Sentinel\Users\UserInterface
return 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];
    }