| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function map(DateLexerResult $parts, DateRepresentationInterface $date) |
||
| 19 | { |
||
| 20 | if (!$date instanceof DateSolarRepresentationInterface) { |
||
| 21 | return; |
||
| 22 | } |
||
| 23 | |||
| 24 | return $date |
||
| 25 | ->withYear($this->determineYear($parts), $parts->get('L')) |
||
| 26 | ->withDayIndex($this->determineDayIndex($parts), null) |
||
| 27 | ; |
||
| 58 |