Total Complexity | 5 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 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) |
||
31 | { |
||
32 | return $this->configuration->get($parameter); |
||
33 | } |
||
34 | |||
35 | public function getName(): string |
||
36 | { |
||
37 | return $this->configuration->getName(); |
||
38 | } |
||
39 | |||
40 | public function getPosition(): ?string |
||
43 | } |
||
44 | } |
||
45 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.