Skip to content

Commit 5d24336

Browse files
committed
Assign string values to Relation enum cases
1 parent 7f14c9e commit 5d24336

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

src/Enum/Relation.php

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@
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;
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+
2223
}

0 commit comments

Comments
 (0)