Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 8 |
|
0.00% |
0 / 8 |
CRAP | |
0.00% |
0 / 1 |
Booking | |
0.00% |
0 / 8 |
|
0.00% |
0 / 8 |
90 | |
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 | |||
getUser | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setUser | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getFormData | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setFormData | |
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\Entity\Users\User; |
8 | use Olz\Repository\Anmelden\BookingRepository; |
9 | |
10 | #[ORM\Table(name: 'anmelden_bookings')] |
11 | #[ORM\Entity(repositoryClass: BookingRepository::class)] |
12 | class Booking 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\ManyToOne(targetEntity: User::class)] |
23 | #[ORM\JoinColumn(name: 'user_id', referencedColumnName: 'id', nullable: true)] |
24 | private ?User $user; |
25 | |
26 | #[ORM\Column(type: 'text', nullable: false)] |
27 | private string $form_data; |
28 | |
29 | public function getId(): ?int { |
30 | return isset($this->id) ? intval($this->id) : null; |
31 | } |
32 | |
33 | public function setId(int $new_id): void { |
34 | $this->id = $new_id; |
35 | } |
36 | |
37 | public function getRegistration(): Registration { |
38 | return $this->registration; |
39 | } |
40 | |
41 | public function setRegistration(Registration $new_registration): void { |
42 | $this->registration = $new_registration; |
43 | } |
44 | |
45 | public function getUser(): ?User { |
46 | return $this->user; |
47 | } |
48 | |
49 | public function setUser(?User $new_user): void { |
50 | $this->user = $new_user; |
51 | } |
52 | |
53 | public function getFormData(): string { |
54 | return $this->form_data; |
55 | } |
56 | |
57 | public function setFormData(string $new_form_data): void { |
58 | $this->form_data = $new_form_data; |
59 | } |
60 | } |