| Total Complexity | 3 |
| Total Lines | 33 |
| 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 Authenticatable $model |
||
| 22 | * @param string $driver |
||
| 23 | * @return MissingConfigException |
||
| 24 | */ |
||
| 25 | 1 | public static function guard(Authenticatable $model, $driver = 'passport') |
|
| 26 | { |
||
| 27 | 1 | $message = 'Any guard with driver "'.$driver.'" found to '.get_class($model); |
|
| 28 | |||
| 29 | 1 | return new static($message); |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param Authenticatable $model |
||
| 34 | * @return MissingConfigException |
||
| 35 | */ |
||
| 36 | 3 | public static function provider(Authenticatable $model) |
|
| 41 | } |
||
| 42 | } |
||
| 43 |