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