| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 50% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class CustomerHydrator extends GeneratedHydrator |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | * @param object|Customer $object |
||
| 26 | */ |
||
| 27 | 2 | public function hydrate(array $data, $object) |
|
| 28 | { |
||
| 29 | 2 | if (!empty($data['seller'])) { |
|
| 30 | 2 | $data['seller'] = $this->hydrator->hydrate($data['seller'], Customer::class); |
|
|
|
|||
| 31 | } |
||
| 32 | |||
| 33 | 2 | return parent::hydrate($data, $object); |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | * @param object|Customer $object |
||
| 39 | */ |
||
| 40 | public function extract($object) |
||
| 46 | ]; |
||
| 47 | } |
||
| 49 |