Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| ExternalIdNotEnabledException | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace DevToolbelt\LaravelEloquentPlus\Exceptions; |
| 6 | |
| 7 | /** |
| 8 | * @package DevToolbelt\LaravelEloquentPlus\Exceptions |
| 9 | */ |
| 10 | class ExternalIdNotEnabledException extends LaravelEloquentPlusException |
| 11 | { |
| 12 | /** |
| 13 | * Create a new ExternalIdNotEnabledException instance. |
| 14 | */ |
| 15 | public function __construct() |
| 16 | { |
| 17 | $message = "External ID is not enabled for this model. " |
| 18 | . "To enable it, declare the 'usesExternalId' property with the value true."; |
| 19 | |
| 20 | parent::__construct($message); |
| 21 | } |
| 22 | } |