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