src/customer/CustomerHydrator.php 1 location
|
@@ 27-34 (lines=8) @@
|
| 24 |
|
* {@inheritdoc} |
| 25 |
|
* @param object|Customer $object |
| 26 |
|
*/ |
| 27 |
|
public function hydrate(array $data, $object) |
| 28 |
|
{ |
| 29 |
|
if (!empty($data['seller'])) { |
| 30 |
|
$data['seller'] = $this->hydrator->hydrate($data['seller'], Customer::class); |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
return parent::hydrate($data, $object); |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
/** |
| 37 |
|
* {@inheritdoc} |
src/target/TargetHydrator.php 1 location
|
@@ 50-57 (lines=8) @@
|
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
/** {@inheritdoc} */ |
| 50 |
|
public function hydrate(array $data, $object) |
| 51 |
|
{ |
| 52 |
|
if (!empty($data['type'])) { |
| 53 |
|
$data['type'] = $this->targetFactory->shortenType($data['type']); |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
return parent::hydrate($data, $object); |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
public function createEmptyInstance(string $className, array $data = []) |
| 60 |
|
{ |