Total Complexity | 1 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
5 | final class EloquentSituations |
||
6 | { |
||
7 | protected $methods = [ |
||
8 | 'whenYouFetch' => 'retrieved', |
||
9 | 'whenYouCreate' => 'creating', |
||
10 | 'whenYouUpdate' => 'updating', |
||
11 | 'whenYouSave' => 'saving', |
||
12 | 'whenYouDelete' => 'deleting', |
||
13 | ]; |
||
14 | |||
15 | /** |
||
16 | * @param $method |
||
17 | * @param $model |
||
18 | * |
||
19 | * @return array |
||
20 | */ |
||
21 | 17 | public function normalize($method, $model): array |
|
26 |