| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 55 | public function mapField($field, array $input, &$output) |
||
| 56 | { |
||
| 57 | $this->guardInvalidArguments($field, $input, $output); |
||
| 58 | |||
| 59 | foreach ($this->validKeys as $key) { |
||
| 60 | if (!array_key_exists($key, $input)) { |
||
| 61 | continue; |
||
| 62 | } |
||
| 63 | |||
| 64 | $datetimeOriginal = new DateTimeImmutable($input[$key]); |
||
| 65 | $output = $output->withCreationDate($datetimeOriginal); |
||
| 66 | break; |
||
| 67 | } |
||
| 68 | } |
||
| 69 | } |
||
| 70 |