Skip to content

Commit e480448

Browse files
Extended the methods doc with the new methods
1 parent de7ba12 commit e480448

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

docs/methods.md

+28
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,34 @@ Checks if two enums are NOT equal. The opposite of equals.
185185

186186
For detailed description read the [Comparing Enums](compare.md) section.
187187

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+
188216
### `value()`
189217

190218
Returns the value of the enum instance.

0 commit comments

Comments
 (0)