Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | final class ModelNotFoundException extends RuntimeException |
||
22 | { |
||
23 | /** |
||
24 | * Name of the affected model. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | private $model; |
||
29 | |||
30 | /** |
||
31 | * Sets the effected model. |
||
32 | * |
||
33 | * @param string $model |
||
34 | * |
||
35 | * @return void |
||
36 | */ |
||
37 | 1 | public function setModel(string $model): void |
|
38 | { |
||
39 | 1 | $this->model = $model; |
|
40 | 1 | } |
|
41 | |||
42 | /** |
||
43 | * Get the effected model. |
||
44 | * |
||
45 | * @return string |
||
46 | */ |
||
47 | 1 | public function getModel(): string |
|
50 | } |
||
51 | } |
||
52 |