| Conditions | 4 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function getPeriodRecordings($startDate, $endDate) |
||
| 19 | { |
||
| 20 | $matching = []; |
||
| 21 | $all = $this->findAll(); |
||
| 22 | foreach ($all as $candidate) { |
||
| 23 | if ($candidate->startDateTime >= $startDate && $candidate->startDateTime <= $endDate) { |
||
| 24 | $matching[] = $candidate; |
||
| 25 | } |
||
| 26 | } |
||
| 27 | |||
| 28 | return $matching; |
||
| 29 | } |
||
| 66 |