| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function __invoke(Team $team): array |
||
| 20 | { |
||
| 21 | $result = []; |
||
| 22 | |||
| 23 | $result['master'] = $this->teamBadgeRepository->findByTeamAndType( |
||
| 24 | $team, |
||
| 25 | BadgeType::MASTER->value, |
||
| 26 | ['tb.mbOrder' => 'ASC'] |
||
| 27 | ); |
||
| 28 | |||
| 29 | $result['serie'] = $this->teamBadgeRepository->findByTeamAndType( |
||
| 30 | $team, |
||
| 31 | BadgeType::SERIE->value, |
||
| 32 | ['tb.createdAt' => 'ASC'] |
||
| 33 | ); |
||
| 34 | |||
| 35 | return $result; |
||
| 36 | } |
||
| 38 |