Total Complexity | 8 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | trait SaveAction |
||
19 | { |
||
20 | use AbstractInjectable; |
||
21 | use Response; |
||
22 | |||
23 | /** |
||
24 | * Saving a record (create & update) |
||
25 | */ |
||
26 | public function saveAction(?int $id = null): ResponseInterface |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * Return true if the record or the records where saved |
||
47 | * Return false if one record wasn't saved |
||
48 | * Return null if nothing was saved |
||
49 | */ |
||
50 | public function saveResultHasKey(array $array, string $key): bool |
||
71 |