Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
18 | trait RestResourceDelete |
||
19 | { |
||
20 | /** |
||
21 | * Before lifecycle method for delete method. |
||
22 | * |
||
23 | * @param string $id |
||
24 | * @param EntityInterface $entity |
||
25 | */ |
||
26 | public function beforeDelete(string &$id, EntityInterface $entity): void |
||
27 | { |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * After lifecycle method for delete method. |
||
32 | * |
||
33 | * @param string $id |
||
34 | * @param EntityInterface $entity |
||
35 | */ |
||
36 | public function afterDelete(string &$id, EntityInterface $entity): void |
||
37 | { |
||
38 | } |
||
40 |