Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 8 |
|
0.00% |
0 / 8 |
CRAP | |
0.00% |
0 / 1 |
Link | |
0.00% |
0 / 8 |
|
0.00% |
0 / 8 |
72 | |
0.00% |
0 / 1 |
getId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setId | |
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 | |||
getPosition | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setPosition | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getUrl | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setUrl | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace Olz\Entity\Service; |
4 | |
5 | use Doctrine\ORM\Mapping as ORM; |
6 | use Olz\Entity\Common\OlzEntity; |
7 | |
8 | #[ORM\Table(name: 'links')] |
9 | #[ORM\Index(name: 'position_index', columns: ['on_off', 'position'])] |
10 | #[ORM\Entity] |
11 | class Link extends OlzEntity { |
12 | #[ORM\Id] |
13 | #[ORM\Column(type: 'integer', nullable: false)] |
14 | #[ORM\GeneratedValue] |
15 | private int $id; |
16 | |
17 | #[ORM\Column(type: 'text', nullable: true)] |
18 | private ?string $name; |
19 | |
20 | #[ORM\Column(type: 'integer', nullable: false)] |
21 | private int $position; |
22 | |
23 | #[ORM\Column(type: 'text', nullable: true)] |
24 | private ?string $url; |
25 | |
26 | public function getId(): ?int { |
27 | return $this->id ?? null; |
28 | } |
29 | |
30 | public function setId(int $new_value): void { |
31 | $this->id = $new_value; |
32 | } |
33 | |
34 | public function getName(): ?string { |
35 | return $this->name; |
36 | } |
37 | |
38 | public function setName(?string $new_value): void { |
39 | $this->name = $new_value; |
40 | } |
41 | |
42 | public function getPosition(): int { |
43 | return $this->position; |
44 | } |
45 | |
46 | public function setPosition(int $new_value): void { |
47 | $this->position = $new_value; |
48 | } |
49 | |
50 | public function getUrl(): ?string { |
51 | return $this->url; |
52 | } |
53 | |
54 | public function setUrl(?string $new_value): void { |
55 | $this->url = $new_value; |
56 | } |
57 | } |