Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
44 | 2 | public function storedJobsSince(?int $jobId): array |
|
45 | { |
||
46 | 2 | $query = $this->createQueryBuilder('j'); |
|
47 | 2 | if (null !== $jobId) { |
|
48 | 1 | $query->where('j.id > :id'); |
|
49 | 1 | $query->setParameters(['id' => $jobId]); |
|
50 | } |
||
51 | 2 | $query->orderBy('j.id'); |
|
52 | |||
53 | 2 | return $query->getQuery()->getResult(); |
|
54 | } |
||
55 | } |
||
56 |