Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 10 |
|
0.00% |
0 / 10 |
CRAP | |
0.00% |
0 / 1 |
Registration | |
0.00% |
0 / 10 |
|
0.00% |
0 / 10 |
110 | |
0.00% |
0 / 1 |
getId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setId | |
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 | |||
getOpensAt | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setOpensAt | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getClosesAt | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setClosesAt | |
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\RegistrationRepository; |
8 | |
9 | #[ORM\Table(name: 'anmelden_registrations')] |
10 | #[ORM\Index(name: 'opens_at_index', columns: ['opens_at'])] |
11 | #[ORM\Index(name: 'closes_at_index', columns: ['closes_at'])] |
12 | #[ORM\Entity(repositoryClass: RegistrationRepository::class)] |
13 | class Registration extends OlzEntity { |
14 | #[ORM\Id] |
15 | #[ORM\Column(type: 'integer', nullable: false)] |
16 | #[ORM\GeneratedValue] |
17 | private int $id; |
18 | |
19 | #[ORM\Column(type: 'text', nullable: false)] |
20 | private string $title; |
21 | |
22 | #[ORM\Column(type: 'text', nullable: false)] |
23 | private string $description; |
24 | |
25 | #[ORM\Column(type: 'datetime', nullable: true)] |
26 | private ?\DateTime $opens_at; |
27 | |
28 | #[ORM\Column(type: 'datetime', nullable: true)] |
29 | private ?\DateTime $closes_at; |
30 | |
31 | public function getId(): ?int { |
32 | return $this->id ?? null; |
33 | } |
34 | |
35 | public function setId(int $new_id): void { |
36 | $this->id = $new_id; |
37 | } |
38 | |
39 | public function getTitle(): string { |
40 | return $this->title; |
41 | } |
42 | |
43 | public function setTitle(string $new_title): void { |
44 | $this->title = $new_title; |
45 | } |
46 | |
47 | public function getDescription(): string { |
48 | return $this->description; |
49 | } |
50 | |
51 | public function setDescription(string $new_description): void { |
52 | $this->description = $new_description; |
53 | } |
54 | |
55 | public function getOpensAt(): ?\DateTime { |
56 | return $this->opens_at; |
57 | } |
58 | |
59 | public function setOpensAt(?\DateTime $new_opens_at): void { |
60 | $this->opens_at = $new_opens_at; |
61 | } |
62 | |
63 | public function getClosesAt(): ?\DateTime { |
64 | return $this->closes_at; |
65 | } |
66 | |
67 | public function setClosesAt(?\DateTime $new_closes_at): void { |
68 | $this->closes_at = $new_closes_at; |
69 | } |
70 | } |