| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function getSprintByPeriod(\DateTime $beginAt, \DateTime $endedAt) |
||
| 24 | { |
||
| 25 | return $this->createQueryBuilder('s') |
||
| 26 | ->where('s.endedAt >= :begin_at') |
||
| 27 | ->andWhere('s.beginAt <= :ended_at') |
||
| 28 | ->setParameters([ |
||
| 29 | 'begin_at' => $beginAt->format('Y-m-d H:i:s'), |
||
| 30 | 'ended_at' => $endedAt->format('Y-m-d H:i:s') |
||
| 31 | ]) |
||
| 32 | ->getQuery() |
||
| 33 | ->getResult(); |
||
| 34 | } |
||
| 35 | } |