Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 12 |
|
0.00% |
0 / 12 |
CRAP | |
0.00% |
0 / 1 |
TerminInfo | |
0.00% |
0 / 12 |
|
0.00% |
0 / 12 |
182 | |
0.00% |
0 / 1 |
getId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
6 | |||
setId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getTermin | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setTermin | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getLanguage | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setLanguage | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getIndex | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setIndex | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getName | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setName | |
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 |
1 | <?php |
2 | |
3 | namespace Olz\Entity\Termine; |
4 | |
5 | use Doctrine\ORM\Mapping as ORM; |
6 | use Olz\Repository\Termine\TerminInfoRepository; |
7 | |
8 | #[ORM\Table(name: 'termin_infos')] |
9 | #[ORM\Index(name: 'termin_language_index', columns: ['termin_id', 'language', 'index'])] |
10 | #[ORM\Entity(repositoryClass: TerminInfoRepository::class)] |
11 | class TerminInfo { |
12 | #[ORM\Id] |
13 | #[ORM\Column(type: 'bigint', nullable: false)] |
14 | #[ORM\GeneratedValue] |
15 | private int|string $id; |
16 | |
17 | #[ORM\ManyToOne(targetEntity: Termin::class)] |
18 | #[ORM\JoinColumn(name: 'termin_id', referencedColumnName: 'id', nullable: false)] |
19 | private Termin $termin; |
20 | |
21 | #[ORM\Column(type: 'string', length: 7, nullable: true)] |
22 | private ?string $language; |
23 | |
24 | #[ORM\Column(type: 'integer', nullable: false)] |
25 | private int $index; |
26 | |
27 | #[ORM\Column(type: 'text', nullable: false)] |
28 | private string $name; |
29 | |
30 | #[ORM\Column(type: 'text', nullable: true)] |
31 | private ?string $content; |
32 | |
33 | public function getId(): ?int { |
34 | return isset($this->id) ? intval($this->id) : null; |
35 | } |
36 | |
37 | public function setId(int $new_value): void { |
38 | $this->id = $new_value; |
39 | } |
40 | |
41 | public function getTermin(): Termin { |
42 | return $this->termin; |
43 | } |
44 | |
45 | public function setTermin(Termin $new_value): void { |
46 | $this->termin = $new_value; |
47 | } |
48 | |
49 | public function getLanguage(): ?string { |
50 | return $this->language; |
51 | } |
52 | |
53 | public function setLanguage(?string $new_value): void { |
54 | $this->language = $new_value; |
55 | } |
56 | |
57 | public function getIndex(): int { |
58 | return $this->index; |
59 | } |
60 | |
61 | public function setIndex(int $new_value): void { |
62 | $this->index = $new_value; |
63 | } |
64 | |
65 | public function getName(): string { |
66 | return $this->name; |
67 | } |
68 | |
69 | public function setName(string $new_value): void { |
70 | $this->name = $new_value; |
71 | } |
72 | |
73 | public function getContent(): ?string { |
74 | return $this->content; |
75 | } |
76 | |
77 | public function setContent(?string $new_value): void { |
78 | $this->content = $new_value; |
79 | } |
80 | } |