Total Complexity | 5 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 63.64% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | trait HasOriginalModel |
||
16 | { |
||
17 | /** |
||
18 | * @deprecated |
||
19 | */ |
||
20 | public static Model|null $model; |
||
21 | |||
22 | /** |
||
23 | * Registers a reference to the origin model for nested & contained fields. |
||
24 | * |
||
25 | * @deprecated |
||
26 | */ |
||
27 | 13 | protected function registerOriginModel($model): static |
|
43 | } |
||
44 | |||
45 | /** |
||
46 | * Return the previously registered origin model. |
||
47 | * |
||
48 | * @deprecated |
||
49 | */ |
||
50 | public static function getOriginModel(): ?Model |
||
55 |