Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 19 |
|
0.00% |
0 / 19 |
CRAP | |
0.00% |
0 / 1 |
RegistrationInfo | |
0.00% |
0 / 19 |
|
0.00% |
0 / 19 |
420 | |
0.00% |
0 / 1 |
getId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
6 | |||
setId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getRegistration | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setRegistration | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getIdent | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setIdent | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getIndexWithinRegistration | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setIndexWithinRegistration | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getTitle | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setTitle | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getDescription | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setDescription | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getType | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setType | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getIsOptional | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setIsOptional | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getOptions | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setOptions | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
__toString | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace Olz\Entity\Anmelden; |
4 | |
5 | use Doctrine\ORM\Mapping as ORM; |
6 | use Olz\Entity\Common\OlzEntity; |
7 | use Olz\Repository\Anmelden\RegistrationInfoRepository; |
8 | |
9 | #[ORM\Table(name: 'anmelden_registration_infos')] |
10 | #[ORM\Index(name: 'ident_index', columns: ['ident'])] |
11 | #[ORM\Entity(repositoryClass: RegistrationInfoRepository::class)] |
12 | class RegistrationInfo extends OlzEntity { |
13 | #[ORM\Id] |
14 | #[ORM\Column(type: 'bigint', nullable: false)] |
15 | #[ORM\GeneratedValue] |
16 | private int|string $id; |
17 | |
18 | #[ORM\ManyToOne(targetEntity: Registration::class)] |
19 | #[ORM\JoinColumn(name: 'registration_id', referencedColumnName: 'id', nullable: false)] |
20 | private Registration $registration; |
21 | |
22 | #[ORM\Column(type: 'integer', nullable: false)] |
23 | private int $index_within_registration; |
24 | |
25 | #[ORM\Column(type: 'string', nullable: false)] |
26 | private string $ident; |
27 | |
28 | #[ORM\Column(type: 'text', nullable: false)] |
29 | private string $title; |
30 | |
31 | #[ORM\Column(type: 'text', nullable: false)] |
32 | private string $description; |
33 | |
34 | #[ORM\Column(type: 'string', nullable: false)] |
35 | private string $type; |
36 | |
37 | #[ORM\Column(type: 'boolean', nullable: false)] |
38 | private bool $is_optional; |
39 | |
40 | #[ORM\Column(type: 'text', nullable: false)] |
41 | private string $options; |
42 | |
43 | public function getId(): ?int { |
44 | return isset($this->id) ? intval($this->id) : null; |
45 | } |
46 | |
47 | public function setId(int $new_id): void { |
48 | $this->id = $new_id; |
49 | } |
50 | |
51 | public function getRegistration(): Registration { |
52 | return $this->registration; |
53 | } |
54 | |
55 | public function setRegistration(Registration $new_registration): void { |
56 | $this->registration = $new_registration; |
57 | } |
58 | |
59 | public function getIdent(): string { |
60 | return $this->ident; |
61 | } |
62 | |
63 | public function setIdent(string $new_ident): void { |
64 | $this->ident = $new_ident; |
65 | } |
66 | |
67 | public function getIndexWithinRegistration(): int { |
68 | return $this->index_within_registration; |
69 | } |
70 | |
71 | public function setIndexWithinRegistration(int $new_index_within_registration): void { |
72 | $this->index_within_registration = $new_index_within_registration; |
73 | } |
74 | |
75 | public function getTitle(): string { |
76 | return $this->title; |
77 | } |
78 | |
79 | public function setTitle(string $new_title): void { |
80 | $this->title = $new_title; |
81 | } |
82 | |
83 | public function getDescription(): string { |
84 | return $this->description; |
85 | } |
86 | |
87 | public function setDescription(string $new_description): void { |
88 | $this->description = $new_description; |
89 | } |
90 | |
91 | public function getType(): string { |
92 | return $this->type; |
93 | } |
94 | |
95 | public function setType(string $new_type): void { |
96 | $this->type = $new_type; |
97 | } |
98 | |
99 | public function getIsOptional(): bool { |
100 | return $this->is_optional; |
101 | } |
102 | |
103 | public function setIsOptional(bool $new_is_optional): void { |
104 | $this->is_optional = $new_is_optional; |
105 | } |
106 | |
107 | public function getOptions(): string { |
108 | return $this->options; |
109 | } |
110 | |
111 | public function setOptions(string $new_options): void { |
112 | $this->options = $new_options; |
113 | } |
114 | |
115 | // --- |
116 | |
117 | public function __toString(): string { |
118 | return "RegistrationInfo (ID: {$this->getId()})"; |
119 | } |
120 | } |