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