| Total Complexity | 6 | 
| Total Lines | 48 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 11 | final class UndefinedState extends RangeState  | 
            ||
| 12 | { | 
            ||
| 13 | /**  | 
            ||
| 14 |      * {@inheritdoc} | 
            ||
| 15 | */  | 
            ||
| 16 | 2 | public function getStartDate(): DateTimeInterface  | 
            |
| 17 |     { | 
            ||
| 18 | 2 |         throw new DateRangeException('Range start is undefined'); | 
            |
| 19 | }  | 
            ||
| 20 | |||
| 21 | /**  | 
            ||
| 22 |      * {@inheritdoc} | 
            ||
| 23 | */  | 
            ||
| 24 | 2 | public function getEndDate(): DateTimeInterface  | 
            |
| 27 | }  | 
            ||
| 28 | |||
| 29 | /**  | 
            ||
| 30 |      * {@inheritdoc} | 
            ||
| 31 | */  | 
            ||
| 32 | 9 | public function setStartDate(DateTimeInterface $start): RangeState  | 
            |
| 33 |     { | 
            ||
| 34 | 9 | return new InfiniteEndState($start);  | 
            |
| 35 | }  | 
            ||
| 36 | |||
| 37 | /**  | 
            ||
| 38 |      * {@inheritdoc} | 
            ||
| 39 | */  | 
            ||
| 40 | 4 | public function setEndDate(DateTimeInterface $end): RangeState  | 
            |
| 43 | }  | 
            ||
| 44 | |||
| 45 | /**  | 
            ||
| 46 |      * {@inheritdoc} | 
            ||
| 47 | */  | 
            ||
| 48 | 3 | public function formatStartDate(string $format = 'c'): ?string  | 
            |
| 49 |     { | 
            ||
| 50 | 3 | return null;  | 
            |
| 51 | }  | 
            ||
| 52 | |||
| 53 | /**  | 
            ||
| 54 |      * {@inheritdoc} | 
            ||
| 55 | */  | 
            ||
| 56 | 3 | public function formatEndDate(string $format = 'c'): ?string  | 
            |
| 59 | }  | 
            ||
| 60 | }  | 
            ||
| 61 |