Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introducing enum for Operators in Where method #27

Closed
roberto-butti opened this issue Oct 11, 2024 · 1 comment
Closed

Introducing enum for Operators in Where method #27

roberto-butti opened this issue Oct 11, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest

Comments

@roberto-butti
Copy link
Contributor

With where() method you can define the operator == != etc for filtering elements.
I would like to introduce enum for listing the operators, something like:

enum Operator: string {
    case EQUAL = '==';
    case GREATER_THAN = '>';
    case LESS_THAN = '<';
    case GREATER_THAN_OR_EQUAL = '>=';
    case LESS_THAN_OR_EQUAL = '<=';
    case NOT_EQUAL = '!=';
    case STRICT_NOT_EQUAL = '!==';
    case IN = 'in';
    case HAS = 'has';
}
@roberto-butti roberto-butti added enhancement New feature or request good first issue Good for newcomers hacktoberfest labels Oct 11, 2024
@roberto-butti
Copy link
Contributor Author

closed by #31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest
Projects
None yet
Development

No branches or pull requests

1 participant