@@ -74,22 +74,22 @@ public function app(): Items\Role
74
74
return new Items \Role (RolesEnum::APP_MENU );
75
75
}
76
76
77
- public function file ($ label = ' File ' ): Items \Role
77
+ public function file (? string $ label = null ): Items \Role
78
78
{
79
79
return new Items \Role (RolesEnum::FILE_MENU , $ label );
80
80
}
81
81
82
- public function edit ($ label = ' Edit ' ): Items \Role
82
+ public function edit (? string $ label = null ): Items \Role
83
83
{
84
84
return new Items \Role (RolesEnum::EDIT_MENU , $ label );
85
85
}
86
86
87
- public function view ($ label = ' View ' ): Items \Role
87
+ public function view (? string $ label = null ): Items \Role
88
88
{
89
89
return new Items \Role (RolesEnum::VIEW_MENU , $ label );
90
90
}
91
91
92
- public function window ($ label = ' Window ' ): Items \Role
92
+ public function window (? string $ label = null ): Items \Role
93
93
{
94
94
return new Items \Role (RolesEnum::WINDOW_MENU , $ label );
95
95
}
@@ -99,73 +99,73 @@ public function separator(): Items\Separator
99
99
return new Items \Separator ;
100
100
}
101
101
102
- public function fullscreen (): Items \Role
102
+ public function fullscreen (? string $ label = null ): Items \Role
103
103
{
104
- return new Items \Role (RolesEnum::TOGGLE_FULL_SCREEN );
104
+ return new Items \Role (RolesEnum::TOGGLE_FULL_SCREEN , $ label );
105
105
}
106
106
107
- public function devTools (): Items \Role
107
+ public function devTools (? string $ label = null ): Items \Role
108
108
{
109
- return new Items \Role (RolesEnum::TOGGLE_DEV_TOOLS );
109
+ return new Items \Role (RolesEnum::TOGGLE_DEV_TOOLS , $ label );
110
110
}
111
111
112
- public function undo (): Items \Role
112
+ public function undo (? string $ label = null ): Items \Role
113
113
{
114
- return new Items \Role (RolesEnum::UNDO );
114
+ return new Items \Role (RolesEnum::UNDO , $ label );
115
115
}
116
116
117
- public function redo (): Items \Role
117
+ public function redo (? string $ label = null ): Items \Role
118
118
{
119
- return new Items \Role (RolesEnum::REDO );
119
+ return new Items \Role (RolesEnum::REDO , $ label );
120
120
}
121
121
122
- public function cut (): Items \Role
122
+ public function cut (? string $ label = null ): Items \Role
123
123
{
124
- return new Items \Role (RolesEnum::CUT );
124
+ return new Items \Role (RolesEnum::CUT , $ label );
125
125
}
126
126
127
- public function copy (): Items \Role
127
+ public function copy (? string $ label = null ): Items \Role
128
128
{
129
- return new Items \Role (RolesEnum::COPY );
129
+ return new Items \Role (RolesEnum::COPY , $ label );
130
130
}
131
131
132
- public function paste (): Items \Role
132
+ public function paste (? string $ label = null ): Items \Role
133
133
{
134
- return new Items \Role (RolesEnum::PASTE );
134
+ return new Items \Role (RolesEnum::PASTE , $ label );
135
135
}
136
136
137
- public function pasteAndMatchStyle (): Items \Role
137
+ public function pasteAndMatchStyle (? string $ label = null ): Items \Role
138
138
{
139
- return new Items \Role (RolesEnum::PASTE_STYLE );
139
+ return new Items \Role (RolesEnum::PASTE_STYLE , $ label );
140
140
}
141
141
142
- public function reload (): Items \Role
142
+ public function reload (? string $ label = null ): Items \Role
143
143
{
144
- return new Items \Role (RolesEnum::RELOAD );
144
+ return new Items \Role (RolesEnum::RELOAD , $ label );
145
145
}
146
146
147
- public function minimize (): Items \Role
147
+ public function minimize (? string $ label = null ): Items \Role
148
148
{
149
- return new Items \Role (RolesEnum::MINIMIZE );
149
+ return new Items \Role (RolesEnum::MINIMIZE , $ label );
150
150
}
151
151
152
- public function close (): Items \Role
152
+ public function close (? string $ label = null ): Items \Role
153
153
{
154
- return new Items \Role (RolesEnum::PASTE_STYLE );
154
+ return new Items \Role (RolesEnum::CLOSE , $ label );
155
155
}
156
156
157
- public function quit (): Items \Role
157
+ public function quit (? string $ label = null ): Items \Role
158
158
{
159
- return new Items \Role (RolesEnum::QUIT );
159
+ return new Items \Role (RolesEnum::QUIT , $ label );
160
160
}
161
161
162
- public function help (): Items \Role
162
+ public function help (? string $ label = null ): Items \Role
163
163
{
164
- return new Items \Role (RolesEnum::HELP );
164
+ return new Items \Role (RolesEnum::HELP , $ label );
165
165
}
166
166
167
- public function hide (): Items \Role
167
+ public function hide (? string $ label = null ): Items \Role
168
168
{
169
- return new Items \Role (RolesEnum::HIDE );
169
+ return new Items \Role (RolesEnum::HIDE , $ label );
170
170
}
171
171
}
0 commit comments