1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
namespace App\Entity; |
6
|
|
|
|
7
|
|
|
use App\Entity\Traits\EntityIdTrait; |
8
|
|
|
use Doctrine\ORM\Mapping as ORM; |
9
|
|
|
|
10
|
|
|
/** |
11
|
|
|
* @ORM\Entity(repositoryClass="App\Repository\MenuRepository") |
12
|
|
|
*/ |
13
|
|
|
class Menu |
14
|
|
|
{ |
15
|
|
|
use EntityIdTrait; |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* @ORM\Column(type="string", length=255) |
19
|
|
|
*/ |
20
|
|
|
private $title; |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* @ORM\Column(type="string", length=2) |
24
|
|
|
*/ |
25
|
|
|
private $locale; |
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* @ORM\Column(type="smallint", nullable=true) |
29
|
|
|
*/ |
30
|
|
|
private $sort_order; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @ORM\Column(type="string", length=255) |
34
|
|
|
*/ |
35
|
|
|
private $url; |
36
|
|
|
|
37
|
|
|
/** |
38
|
|
|
* @ORM\Column(type="boolean", nullable=true) |
39
|
|
|
*/ |
40
|
|
|
private $nofollow; |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* @ORM\Column(type="boolean", nullable=true) |
44
|
|
|
*/ |
45
|
|
|
private $new_tab; |
46
|
|
|
|
47
|
|
|
public function getTitle(): ?string |
48
|
|
|
{ |
49
|
|
|
return $this->title; |
50
|
|
|
} |
51
|
|
|
|
52
|
|
|
public function setTitle(string $title): self |
53
|
|
|
{ |
54
|
|
|
$this->title = $title; |
55
|
|
|
|
56
|
|
|
return $this; |
57
|
|
|
} |
58
|
|
|
|
59
|
|
|
public function getSortOrder(): ?int |
60
|
|
|
{ |
61
|
|
|
return $this->sort_order; |
62
|
|
|
} |
63
|
|
|
|
64
|
|
|
public function setSortOrder(?int $sort_order): self |
65
|
|
|
{ |
66
|
|
|
$this->sort_order = $sort_order; |
67
|
|
|
|
68
|
|
|
return $this; |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
public function getUrl(): ?string |
72
|
|
|
{ |
73
|
|
|
return $this->url; |
74
|
|
|
} |
75
|
|
|
|
76
|
|
|
public function setUrl(string $url): self |
77
|
|
|
{ |
78
|
|
|
$this->url = $url; |
79
|
|
|
|
80
|
|
|
return $this; |
81
|
|
|
} |
82
|
|
|
|
83
|
|
|
public function getNofollow(): ?bool |
84
|
|
|
{ |
85
|
|
|
return $this->nofollow; |
86
|
|
|
} |
87
|
|
|
|
88
|
|
|
public function setNofollow(?bool $nofollow): self |
89
|
|
|
{ |
90
|
|
|
$this->nofollow = $nofollow; |
91
|
|
|
|
92
|
|
|
return $this; |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
public function getNewTab(): ?bool |
96
|
|
|
{ |
97
|
|
|
return $this->new_tab; |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
public function setNewTab(?bool $new_tab): self |
101
|
|
|
{ |
102
|
|
|
$this->new_tab = $new_tab; |
103
|
|
|
|
104
|
|
|
return $this; |
105
|
|
|
} |
106
|
|
|
|
107
|
|
|
public function getLocale(): string |
108
|
|
|
{ |
109
|
|
|
return $this->locale; |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
public function setLocale(string $locale): self |
113
|
|
|
{ |
114
|
|
|
$this->locale = $locale; |
115
|
|
|
|
116
|
|
|
return $this; |
117
|
|
|
} |
118
|
|
|
} |
119
|
|
|
|