| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class MissingConfigException extends Exception |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @param string $message |
||
| 12 | */ |
||
| 13 | 4 | public function __construct($message) |
|
| 18 | 4 | } |
|
| 19 | |||
| 20 | /** |
||
| 21 | * @param $provider |
||
| 22 | * @return MissingConfigException |
||
| 23 | */ |
||
| 24 | public static function providerGuard($provider) |
||
| 25 | 1 | { |
|
| 26 | $msg = 'Any guard found for provider '.$provider.' and driver passport'; |
||
| 27 | 1 | ||
| 28 | return new static($msg); |
||
| 29 | 1 | } |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @param Authenticatable $model |
||
| 33 | * @return MissingConfigException |
||
| 34 | */ |
||
| 35 | public static function provider(Authenticatable $model) |
||
| 40 | 3 | } |
|
| 41 | } |
||
| 42 |