| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public function getSprintByPeriod(\DateTime $beginAt, \DateTime $endedAt) |
||
| 35 | { |
||
| 36 | return $this->createQueryBuilder('s') |
||
| 37 | ->where('s.endedAt >= :begin_at') |
||
| 38 | ->andWhere('s.beginAt <= :ended_at') |
||
| 39 | ->setParameters([ |
||
| 40 | 'begin_at' => $beginAt->format('Y-m-d H:i:s'), |
||
| 41 | 'ended_at' => $endedAt->format('Y-m-d H:i:s') |
||
| 42 | ]) |
||
| 43 | ->getQuery() |
||
| 44 | ->getResult(); |
||
| 45 | } |
||
| 46 | } |