Conditions | 3 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
20 | 27 | protected function compare(mixed $itemValue, mixed $argumentValue): bool |
|
21 | { |
||
22 | 27 | if (!$itemValue instanceof DateTimeInterface) { |
|
23 | 24 | return $itemValue >= $argumentValue; |
|
24 | } |
||
25 | |||
26 | 3 | return $argumentValue instanceof DateTimeInterface |
|
27 | 3 | && $itemValue->getTimestamp() >= $argumentValue->getTimestamp(); |
|
28 | } |
||
30 |