| Conditions | 5 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 58 | 2 | public function in(Period $period): bool |
|
| 59 | { |
||
| 60 | 2 | if ($this->getStart() >= $period->getStart() |
|
| 61 | 2 | && $this->getStart() <= $period->getEnd() |
|
| 62 | 2 | && $this->getEnd() >= $period->getStart() |
|
| 63 | 2 | && $this->getEnd() <= $period->getEnd() |
|
| 64 | ) { |
||
| 65 | 1 | return true; |
|
| 66 | } |
||
| 67 | |||
| 68 | 1 | return false; |
|
| 69 | } |
||
| 104 | } |