File tree 1 file changed +28
-0
lines changed
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,34 @@ Checks if two enums are NOT equal. The opposite of equals.
185
185
186
186
For detailed description read the [ Comparing Enums] ( compare.md ) section.
187
187
188
+ ### ` doesNotEqualTo() `
189
+
190
+ Alias of ` notEquals() ` but accepts ` EnumInterface ` as argument, notEquals accepts any ` object ` ;
191
+
192
+ For detailed description read the [ Comparing Enums] ( compare.md ) section.
193
+
194
+ ### ` isAnyOf() `
195
+
196
+ Returns whether an enum equals to any of the given arguments:
197
+
198
+ ``` php
199
+ $new = Status::NEW();
200
+ $new->isAnyOf(Status::PENDING(), Status::NEW());
201
+ // => true
202
+ ```
203
+
204
+ ### ` isNoneOf() `
205
+
206
+ Checks whether an enum is none of the passed arguments. The opposite of ` isAnyOf() ` :
207
+
208
+ ``` php
209
+ $new = Status::NEW();
210
+ $new->isNoneOf(Status::PENDING(), Status::COMPLETED());
211
+ // => true
212
+ ```
213
+
214
+ For detailed description read the [ Comparing Enums] ( compare.md ) section.
215
+
188
216
### ` value() `
189
217
190
218
Returns the value of the enum instance.
You can’t perform that action at this time.
0 commit comments