| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 9 | 6 | { |
|
| 10 | /** |
||
| 11 | 6 | * {@inheritdoc} |
|
| 12 | 6 | */ |
|
| 13 | 6 | public function findEndBefore(\DateTime $dateTime) |
|
| 14 | 6 | { |
|
| 15 | 6 | return $this->createQueryBuilder('t') |
|
| 16 | 6 | ->where('t.lastExecution IS NULL OR t.lastExecution >= :dateTime') |
|
| 17 | ->setParameter('dateTime', $dateTime) |
||
| 18 | 6 | ->getQuery() |
|
| 19 | ->getResult(); |
||
| 20 | } |
||
| 39 |