| Conditions | 7 |
| Paths | 5 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | public function isOk() |
||
| 50 | { |
||
| 51 | $first = $this->getFirst(); |
||
| 52 | $last = $this->getLast(); |
||
| 53 | if (null === $first || !$first->isOk()) { |
||
| 54 | return false; |
||
| 55 | } |
||
| 56 | if (null === $last || !$last->isOk()) { |
||
| 57 | return false; |
||
| 58 | } |
||
| 59 | if (!$first->isCompatible($last)) { |
||
| 60 | return false; |
||
| 61 | } |
||
| 62 | if (-1 !== $first->compare($last)) { |
||
|
|
|||
| 63 | return false; |
||
| 64 | } |
||
| 65 | return true; |
||
| 66 | } |
||
| 67 | } |
||
| 68 |