| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function isOk(): bool |
||
| 36 | { |
||
| 37 | $first = $this->getFirst(); |
||
| 38 | $last = $this->getLast(); |
||
| 39 | if (!$first->isOk()) { |
||
| 40 | return false; |
||
| 41 | } |
||
| 42 | if (!$last->isOk()) { |
||
| 43 | return false; |
||
| 44 | } |
||
| 45 | if (!$first->isCompatible($last)) { |
||
| 46 | return false; |
||
| 47 | } |
||
| 48 | return -1 === $first->compare($last); |
||
| 49 | } |
||
| 60 |