Total Complexity | 4 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
25 | class Participant extends BaseEntity |
||
26 | { |
||
27 | use IdTrait; |
||
28 | |||
29 | /** |
||
30 | * @var Answer[]|ArrayCollection |
||
31 | * |
||
32 | * @ORM\OneToMany(targetEntity="Answer", mappedBy="participant") |
||
33 | */ |
||
34 | private $answers; |
||
35 | |||
36 | /** |
||
37 | * @var Event |
||
38 | * |
||
39 | * @ORM\ManyToOne(targetEntity="App\Entity\Event", inversedBy="participants") |
||
40 | */ |
||
41 | private $event; |
||
42 | |||
43 | /** |
||
44 | * Participant constructor. |
||
45 | */ |
||
46 | public function __construct() |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @return Answer[]|ArrayCollection |
||
53 | */ |
||
54 | public function getAnswers(): array |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * @return Event |
||
61 | */ |
||
62 | public function getEvent(): Event |
||
65 | } |
||
66 | |||
67 | /** |
||
68 | * @param Event $event |
||
69 | */ |
||
70 | public function setEvent(Event $event): void |
||
75 |