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