We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ef6895b + 61d0ebf commit 6dc1be9Copy full SHA for 6dc1be9
README.md
@@ -63,10 +63,11 @@ It's an abstract class that needs to be extended to use it.
63
UserStatus::get(UserStatus::DELETED) != UserStatus::INACTIVE()
64
65
// simplified way to compare two enumerators
66
- UserStatus::ACTIVE()->is(UserStatus::ACTIVE); // true
67
- UserStatus::ACTIVE()->is(UserStatus::ACTIVE()); // true
68
- UserStatus::ACTIVE()->is(UserStatus::DELETED); // false
69
- UserStatus::ACTIVE()->is(UserStatus::DELETED()); // false
+ $status = UserStatus::ACTIVE();
+ $status->is(UserStatus::ACTIVE); // true
+ $status->is(UserStatus::ACTIVE()); // true
+ $status->is(UserStatus::DELETED); // false
70
+ $status->is(UserStatus::DELETED()); // false
71
```
72
73
## Type-Hint
0 commit comments