Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function getById(int $id): PerformanceEventEntity |
||
29 | { |
||
30 | /** @var PerformanceEventEntity $performanceEventEntity */ |
||
31 | $performanceEventEntity = $this->performanceEventRepository->find($id); |
||
32 | if (!$performanceEventEntity) { |
||
33 | throw new NotFoundException('Performance Event not found by ID: '.$id); |
||
34 | } |
||
35 | |||
36 | return $performanceEventEntity; |
||
37 | } |
||
38 | } |
||
39 |