Conditions | 3 |
Paths | 3 |
Total Lines | 19 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function produceReport(): array |
||
25 | { |
||
26 | $report = []; |
||
27 | $tickets = $this->em->getRepository(TicketRecord::class)->findAll(); |
||
28 | foreach ($tickets as $ticket) |
||
29 | { |
||
30 | /** @var TicketRecord $ticket */ |
||
31 | if (!empty($ticket->getDelegate()->getRequirements())) { |
||
32 | $item = [ |
||
33 | 'firstname' => $ticket->getDelegate()->getFirstname(), |
||
34 | 'lastname' => $ticket->getDelegate()->getLastname(), |
||
35 | 'requirements' => $ticket->getDelegate()->getRequirements(), |
||
36 | ]; |
||
37 | |||
38 | $report[] = $item; |
||
39 | } |
||
40 | } |
||
41 | |||
42 | return $report; |
||
43 | } |
||
44 | } |