composer package updates
[openemr.git] / vendor / adldap2 / adldap2 / src / Query / Operator.php
blob1e0ce645ccd625bea25f10ddac32e35425d52c31
1 <?php
3 namespace Adldap\Query;
5 use ReflectionClass;
7 class Operator
9 /**
10 * The 'has' wildcard operator.
12 * @var string
14 public static $has = '*';
16 /**
17 * The custom `notHas` operator.
19 * @var string
21 public static $notHas = '!*';
23 /**
24 * The equals operator.
26 * @var string
28 public static $equals = '=';
30 /**
31 * The does not equal operator.
33 * @var string
35 public static $doesNotEqual = '!';
37 /**
38 * The does not equal operator (alias)
40 * @var string
42 public static $doesNotEqualAlias = '!=';
44 /**
45 * The greater than or equal to operator.
47 * @var string
49 public static $greaterThanOrEquals = '>=';
51 /**
52 * The less than or equal to operator.
54 * @var string
56 public static $lessThanOrEquals = '<=';
58 /**
59 * The approximately equal to operator.
61 * @var string
63 public static $approximatelyEquals = '~=';
65 /**
66 * The custom starts with operator.
68 * @var string
70 public static $startsWith = 'starts_with';
72 /**
73 * The custom not starts with operator.
75 * @var string
77 public static $notStartsWith = 'not_starts_with';
79 /**
80 * The custom ends with operator.
82 * @var string
84 public static $endsWith = 'ends_with';
86 /**
87 * The custom not ends with operator.
89 * @var string
91 public static $notEndsWith = 'not_ends_with';
93 /**
94 * The custom contains operator.
96 * @var string
98 public static $contains = 'contains';
101 * The custom not contains operator.
103 * @var string
105 public static $notContains = 'not_contains';
108 * Returns all available operators.
110 * @return array
112 public static function all()
114 return (new ReflectionClass(new static()))
115 ->getStaticProperties();