Conditions | 2 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
36 | 8 | public static function fromRawData(array $query): self |
|
37 | { |
||
38 | 8 | return new self( |
|
39 | 8 | new DateRange(parseDateFromQuery($query, 'startDate'), parseDateFromQuery($query, 'endDate')), |
|
40 | 8 | (int) ($query['page'] ?? 1), |
|
41 | 8 | isset($query['itemsPerPage']) ? (int) $query['itemsPerPage'] : null, |
|
42 | ); |
||
60 |