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