File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 10
10
namespace anlutro \Menu \Nodes ;
11
11
12
12
use anlutro \Menu \Util \StringUtils ;
13
+ use anlutro \Menu \Icons \IconInterface ;
13
14
14
15
/**
15
16
* A menu item.
@@ -33,7 +34,7 @@ abstract class AbstractNode
33
34
/**
34
35
* The icon associated with the item.
35
36
*
36
- * @var \anlutro\Menu\Icons\ IconInterface
37
+ * @var IconInterface
37
38
*/
38
39
protected $ icon ;
39
40
@@ -92,10 +93,10 @@ public static function addIconResolvers(array $resolvers)
92
93
*/
93
94
protected function parseAttributes (array $ attributes )
94
95
{
95
- if (isset ($ attributes ['icon ' ]) && $ attributes ['icon ' ] instanceof Icons \ IconInterface) {
96
+ if (isset ($ attributes ['icon ' ]) && $ attributes ['icon ' ] instanceof IconInterface) {
96
97
$ this ->icon = $ attributes ['icon ' ];
97
98
} else {
98
- /** @var Icons\ IconInterface $resolver */
99
+ /** @var IconInterface $resolver */
99
100
foreach (static ::$ iconResolvers as $ key => $ resolver ) {
100
101
if (array_key_exists ($ key , $ attributes )) {
101
102
$ this ->icon = $ resolver ::createFromAttribute ($ attributes [$ key ]);
You can’t perform that action at this time.
0 commit comments