@@ -37,51 +37,39 @@ public function getRows(MenuStyle $style, bool $selected = false) : array
37
37
}
38
38
39
39
/**
40
- * Can the item be selected
40
+ * Return the raw string of text
41
41
*/
42
- public function canSelect () : bool
42
+ public function getText () : string
43
43
{
44
- return false ;
44
+ return $ this -> text ;
45
45
}
46
46
47
47
/**
48
- * Execute the items callable if required
48
+ * Set the raw string of text
49
49
*/
50
- public function getSelectAction () : ?callable
51
- {
52
- return null ;
53
- }
54
-
55
- public function getStyle () : SelectableStyle
56
- {
57
- return $ this ->style ;
58
- }
59
-
60
- public function setStyle (SelectableStyle $ style ) : self
50
+ public function setText (string $ text ) : void
61
51
{
62
- $ this ->style = $ style ;
63
-
64
- return $ this ;
52
+ $ this ->text = $ text ;
65
53
}
66
54
67
55
/**
68
- * Return the raw string of text
56
+ * Execute the items callable if required
69
57
*/
70
- public function getText () : string
58
+ public function getSelectAction () : ? callable
71
59
{
72
- return $ this -> text ;
60
+ return null ;
73
61
}
74
62
75
63
/**
76
- * Set the raw string of text
64
+ * Can the item be selected
77
65
*/
78
- public function setText ( string $ text ) : void
66
+ public function canSelect ( ) : bool
79
67
{
80
- $ this -> text = $ text ;
68
+ return false ;
81
69
}
82
70
83
71
/**
84
- * Whether or not the menu item is showing the menustyle extra value
72
+ * Whether or not we are showing item extra
85
73
*/
86
74
public function showsItemExtra () : bool
87
75
{
@@ -103,4 +91,16 @@ public function hideItemExtra() : void
103
91
{
104
92
//noop
105
93
}
94
+
95
+ public function getStyle () : SelectableStyle
96
+ {
97
+ return $ this ->style ;
98
+ }
99
+
100
+ public function setStyle (SelectableStyle $ style ) : self
101
+ {
102
+ $ this ->style = $ style ;
103
+
104
+ return $ this ;
105
+ }
106
106
}
0 commit comments