Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function updateEntity($entity, $data) |
||
25 | { |
||
26 | try { |
||
27 | foreach ((array)$data as $property => $value) { |
||
28 | $this->accessor->setValue($entity, $property, $value); |
||
29 | } |
||
30 | } catch (ExceptionInterface $exception) { |
||
31 | throw new EntityProcessingException($exception->getMessage(), $exception->getCode(), $exception); |
||
32 | } |
||
33 | |||
34 | return $entity; |
||
|
|||
35 | } |
||
36 | } |
||
37 |