ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
enum.Operator.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 {
25  case EQUAL;
26  case LOWER;
27  case GREATER;
28  case GREATER_EQUAL;
29  case LOWER_EQUAL;
30 
31  public static function toString(Operator $operator): string
32  {
33  return match ($operator) {
34  Operator::EQUAL => '=',
35  Operator::LOWER => '<',
36  Operator::GREATER => '>',
37  Operator::GREATER_EQUAL => '>=',
38  Operator::LOWER_EQUAL => '<=',
39  };
40  }
41 }