Conditions | 4 |
Paths | 3 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | protected function fillObject($object, array $data) |
||
13 | { |
||
14 | $propertyAccessor = PropertyAccess::createPropertyAccessor(); |
||
15 | foreach ($data as $column => $value) { |
||
16 | if (is_string($value) && $this->isDate($value)) { |
||
17 | $value = new DateTime($value); |
||
18 | } |
||
19 | |||
20 | $propertyAccessor->setValue($object, $column, $value); |
||
21 | } |
||
22 | } |
||
23 | |||
31 |