| @@ 478-481 (lines=4) @@ | ||
| 475 | 'createTime' => 'string(x:Order/x:CreateTime)', |
|
| 476 | 'dateOfBirth' => 'string(x:Order/x:Customer/x:DateOfBirth)', |
|
| 477 | ]; |
|
| 478 | foreach ($dateProperties as $prop => $extractPath) { |
|
| 479 | $value = $xpath->evaluate($extractPath); |
|
| 480 | $this->$prop = $value ? new DateTime($value) : null; |
|
| 481 | } |
|
| 482 | return $this; |
|
| 483 | } |
|
| 484 | ||
| @@ 612-615 (lines=4) @@ | ||
| 609 | 'namedDeliveryTimeWindowStart' => 'string(x:NamedDeliveryDate/x:TimeWindowStart)', |
|
| 610 | 'namedDeliveryTimeWindowEnd' => 'string(x:NamedDeliveryDate/x:TimeWindowEnd)', |
|
| 611 | ]; |
|
| 612 | foreach ($dateProperties as $prop => $extractPath) { |
|
| 613 | $value = $xpath->evaluate($extractPath); |
|
| 614 | $this->$prop = $value ? new DateTime($value) : null; |
|
| 615 | } |
|
| 616 | return $this; |
|
| 617 | } |
|
| 618 | ||