Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 20 |
|
0.00% |
0 / 20 |
CRAP | |
0.00% |
0 / 1 |
TerminNotificationTemplate | |
0.00% |
0 / 20 |
|
0.00% |
0 / 20 |
462 | |
0.00% |
0 / 1 |
getId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
6 | |||
setId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getTerminTemplate | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setTerminTemplate | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getFiresEarlierSeconds | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setFiresEarlierSeconds | |
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 | |||
getContent | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setContent | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getRecipientUser | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setRecipientUser | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getRecipientRole | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setRecipientRole | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getRecipientTerminOwners | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setRecipientTerminOwners | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getRecipientTerminVolunteers | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setRecipientTerminVolunteers | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getRecipientTerminParticipants | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setRecipientTerminParticipants | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace Olz\Entity\Termine; |
4 | |
5 | use Doctrine\ORM\Mapping as ORM; |
6 | use Olz\Entity\Roles\Role; |
7 | use Olz\Entity\Users\User; |
8 | use Olz\Repository\Termine\TerminNotificationTemplateRepository; |
9 | |
10 | #[ORM\Table(name: 'termin_notification_templates')] |
11 | #[ORM\Index(name: 'termin_template_index', columns: ['termin_template_id'])] |
12 | #[ORM\Entity(repositoryClass: TerminNotificationTemplateRepository::class)] |
13 | class TerminNotificationTemplate { |
14 | #[ORM\Id] |
15 | #[ORM\Column(type: 'bigint', nullable: false)] |
16 | #[ORM\GeneratedValue] |
17 | private int|string $id; |
18 | |
19 | #[ORM\ManyToOne(targetEntity: TerminTemplate::class)] |
20 | #[ORM\JoinColumn(name: 'termin_template_id', referencedColumnName: 'id', nullable: false)] |
21 | private TerminTemplate $termin_template; |
22 | |
23 | #[ORM\Column(type: 'integer', nullable: true)] |
24 | private ?int $fires_earlier_seconds; |
25 | |
26 | #[ORM\Column(type: 'text', nullable: false)] |
27 | private string $title; |
28 | |
29 | #[ORM\Column(type: 'text', nullable: true)] |
30 | private ?string $content; |
31 | |
32 | #[ORM\ManyToOne(targetEntity: User::class)] |
33 | #[ORM\JoinColumn(name: 'recipient_user_id', referencedColumnName: 'id', nullable: true)] |
34 | private ?User $recipient_user; |
35 | |
36 | #[ORM\ManyToOne(targetEntity: Role::class)] |
37 | #[ORM\JoinColumn(name: 'recipient_role_id', referencedColumnName: 'id', nullable: true)] |
38 | private ?Role $recipient_role; |
39 | |
40 | #[ORM\Column(type: 'boolean', nullable: false, options: ['default' => 0])] |
41 | private bool $recipient_termin_owners; |
42 | |
43 | #[ORM\Column(type: 'boolean', nullable: false, options: ['default' => 0])] |
44 | private bool $recipient_termin_volunteers; |
45 | |
46 | #[ORM\Column(type: 'boolean', nullable: false, options: ['default' => 0])] |
47 | private bool $recipient_termin_participants; |
48 | |
49 | public function getId(): ?int { |
50 | return isset($this->id) ? intval($this->id) : null; |
51 | } |
52 | |
53 | public function setId(int $new_value): void { |
54 | $this->id = $new_value; |
55 | } |
56 | |
57 | public function getTerminTemplate(): TerminTemplate { |
58 | return $this->termin_template; |
59 | } |
60 | |
61 | public function setTerminTemplate(TerminTemplate $new_value): void { |
62 | $this->termin_template = $new_value; |
63 | } |
64 | |
65 | public function getFiresEarlierSeconds(): ?int { |
66 | return $this->fires_earlier_seconds; |
67 | } |
68 | |
69 | public function setFiresEarlierSeconds(?int $new_value): void { |
70 | $this->fires_earlier_seconds = $new_value; |
71 | } |
72 | |
73 | public function getTitle(): string { |
74 | return $this->title; |
75 | } |
76 | |
77 | public function setTitle(string $new_value): void { |
78 | $this->title = $new_value; |
79 | } |
80 | |
81 | public function getContent(): ?string { |
82 | return $this->content; |
83 | } |
84 | |
85 | public function setContent(?string $new_value): void { |
86 | $this->content = $new_value; |
87 | } |
88 | |
89 | public function getRecipientUser(): ?User { |
90 | return $this->recipient_user; |
91 | } |
92 | |
93 | public function setRecipientUser(?User $new_value): void { |
94 | $this->recipient_user = $new_value; |
95 | } |
96 | |
97 | public function getRecipientRole(): ?Role { |
98 | return $this->recipient_role; |
99 | } |
100 | |
101 | public function setRecipientRole(?Role $new_value): void { |
102 | $this->recipient_role = $new_value; |
103 | } |
104 | |
105 | public function getRecipientTerminOwners(): bool { |
106 | return $this->recipient_termin_owners; |
107 | } |
108 | |
109 | public function setRecipientTerminOwners(bool $new_value): void { |
110 | $this->recipient_termin_owners = $new_value; |
111 | } |
112 | |
113 | public function getRecipientTerminVolunteers(): bool { |
114 | return $this->recipient_termin_volunteers; |
115 | } |
116 | |
117 | public function setRecipientTerminVolunteers(bool $new_value): void { |
118 | $this->recipient_termin_volunteers = $new_value; |
119 | } |
120 | |
121 | public function getRecipientTerminParticipants(): bool { |
122 | return $this->recipient_termin_participants; |
123 | } |
124 | |
125 | public function setRecipientTerminParticipants(bool $new_value): void { |
126 | $this->recipient_termin_participants = $new_value; |
127 | } |
128 | } |