Total Complexity | 6 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
23 | class Entry extends Item |
||
24 | { |
||
25 | /** |
||
26 | * Set the menu entry name. |
||
27 | */ |
||
28 | public function setName(string $value): self |
||
29 | { |
||
30 | $this->offsetSet('name', $value); |
||
31 | |||
32 | return $this; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Get menu entry name. |
||
37 | */ |
||
38 | public function getName(): ?string |
||
39 | { |
||
40 | return $this->offsetGet('name'); |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * Set the menu entry URL. |
||
45 | */ |
||
46 | public function setUrl(?string $value = null): self |
||
47 | { |
||
48 | $this->offsetSet('url', $value); |
||
49 | |||
50 | return $this; |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * Get menu entry URL. |
||
55 | */ |
||
56 | public function getUrl(): ?string |
||
57 | { |
||
58 | return $this->offsetGet('url'); |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * Set menu entry weight. |
||
63 | */ |
||
64 | public function setWeight(int $value): self |
||
69 | } |
||
70 | |||
71 | /** |
||
72 | * Get menu entry weight. |
||
73 | */ |
||
74 | public function getWeight(): ?int |
||
77 | } |
||
78 | } |
||
79 |