Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| MustHaveTraitException | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace Albet\SanctumRefresh\Exceptions; |
| 4 | |
| 5 | class MustHaveTraitException extends \Exception |
| 6 | { |
| 7 | public function __construct(string $model, string $trait, int $code = 0, $previous = null) |
| 8 | { |
| 9 | parent::__construct("Your $model must extends {$trait}", $code, $previous); |
| 10 | } |
| 11 | } |