Cartalyst\Sentinel\Checkpoints\ThrottleCheckpoint::check PHP Method

check() public method

{@inheritDoc}
public check ( Cartalyst\Sentinel\Users\UserInterface $user )
$user Cartalyst\Sentinel\Users\UserInterface
    public function check(UserInterface $user)
    {
        return $this->checkThrottling('check', $user);
    }

Usage Example

 public function testCheck()
 {
     $checkpoint = new ThrottleCheckpoint($throttle = m::mock('Cartalyst\\Sentinel\\Throttling\\IlluminateThrottleRepository'));
     $checkpoint->check(m::mock('Cartalyst\\Sentinel\\Users\\EloquentUser'));
 }