Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| InvalidCredentialsException | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getNumRemainingAttempts | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace Olz\Exceptions; |
| 4 | |
| 5 | class InvalidCredentialsException extends \Exception { |
| 6 | /** @param int<0, max> $num_remaining_attempts */ |
| 7 | public function __construct( |
| 8 | string $message = "", |
| 9 | protected int $num_remaining_attempts = 0, |
| 10 | int $code = 0, |
| 11 | ?\Throwable $previous = null, |
| 12 | ) { |
| 13 | parent::__construct($message, $code, $previous); |
| 14 | } |
| 15 | |
| 16 | /** @return int<0, max> */ |
| 17 | public function getNumRemainingAttempts(): int { |
| 18 | return $this->num_remaining_attempts; |
| 19 | } |
| 20 | } |