1 | <?php |
||
26 | final class NavigationItem extends AbstractNode implements NavigationInterface { |
||
27 | |||
28 | /** |
||
29 | * Href. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | private $href; |
||
34 | |||
35 | /** |
||
36 | * Icon. |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | private $icon; |
||
41 | |||
42 | /** |
||
43 | * Constructor. |
||
44 | * |
||
45 | * @param string $id The id. |
||
46 | * @param string $icon The icon. |
||
47 | * @param string $href The href. |
||
48 | */ |
||
49 | public function __construct($id, $icon = null, $href = self::DEFAULT_HREF) { |
||
54 | |||
55 | /** |
||
56 | * Get the href. |
||
57 | * |
||
58 | * @return string Returns the href. |
||
59 | */ |
||
60 | public function getHref() { |
||
63 | |||
64 | /** |
||
65 | * Get the icon. |
||
66 | * |
||
67 | * @return string Returns the icon. |
||
68 | */ |
||
69 | public function getIcon() { |
||
72 | |||
73 | /** |
||
74 | * Set the href. |
||
75 | * |
||
76 | * @param string $href The href. |
||
77 | * @return NavigationItem Returns the navigation item. |
||
78 | */ |
||
79 | public function setHref($href) { |
||
83 | |||
84 | /** |
||
85 | * Set the icon. |
||
86 | * |
||
87 | * @param string $icon The icon. |
||
88 | * @return NavigationItem Returns the navigation item. |
||
89 | */ |
||
90 | public function setIcon($icon) { |
||
94 | |||
95 | /** |
||
96 | * Convert into an array representing this instance. |
||
97 | * |
||
98 | * @return array Returns an array representing this instance. |
||
99 | */ |
||
100 | public function toArray() { |
||
123 | |||
124 | } |
||
125 |
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.