Total Complexity | 5 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class MenuItem |
||
8 | { |
||
9 | /** |
||
10 | * @var MenuItemConfiguration |
||
11 | */ |
||
12 | private $configuration; |
||
13 | |||
14 | /** |
||
15 | * MenuItem constructor. |
||
16 | */ |
||
17 | public function __construct(MenuItemConfiguration $configuration) |
||
18 | { |
||
19 | $this->configuration = $configuration; |
||
20 | } |
||
21 | |||
22 | public function getConfiguration(): MenuItemConfiguration |
||
23 | { |
||
24 | return $this->configuration; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @return mixed |
||
29 | */ |
||
30 | public function get(string $parameter) |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @return string |
||
37 | */ |
||
38 | public function getName(): string |
||
39 | { |
||
40 | return $this->configuration->getName(); |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @return string|null |
||
45 | */ |
||
46 | public function getPosition(): ?string |
||
49 | } |
||
50 | } |
||
51 |