Skip to content

Commit 88af002

Browse files
authored
Merge pull request #20 from byjg/5.0
Assign string values to Relation enum cases
2 parents a40c7f2 + bee5b4f commit 88af002

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/Enum/Relation.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
*
88
* Use this in AddRelation method.
99
*/
10-
enum Relation
10+
enum Relation: string
1111
{
12-
case EQUAL;
13-
case LESS_THAN;
14-
case GREATER_THAN;
15-
case LESS_OR_EQUAL_THAN;
16-
case GREATER_OR_EQUAL_THAN;
17-
case NOT_EQUAL;
18-
case STARTS_WITH;
19-
case CONTAINS;
20-
case IN;
21-
case NOT_IN;
22-
case IS_NULL;
23-
case IS_NOT_NULL;
12+
case EQUAL = '=';
13+
case LESS_THAN = '<';
14+
case GREATER_THAN = '>';
15+
case LESS_OR_EQUAL_THAN = '<=';
16+
case GREATER_OR_EQUAL_THAN = '>=';
17+
case NOT_EQUAL = '<>';
18+
case STARTS_WITH = 'STARTS WITH';
19+
case CONTAINS = 'CONTAINS';
20+
case IN = 'IN';
21+
case NOT_IN = 'NOT IN';
22+
case IS_NULL = 'IS NULL';
23+
case IS_NOT_NULL = 'IS NOT NULL';
2424
}

0 commit comments

Comments
 (0)