| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function findByBandName(string $name): array |
||
| 17 | { |
||
| 18 | $queryBuilder = $this->createQueryBuilder('band_member'); |
||
| 19 | $queryBuilder->where('band_member.band = :bandName'); |
||
| 20 | $queryBuilder->setParameter('bandName', $name); |
||
| 21 | |||
| 22 | return $queryBuilder->getQuery()->getResult(); |
||
| 23 | } |
||
| 24 | } |
||
| 25 |