This repository was archived by the owner on Apr 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathComparatorEnum.php
More file actions
123 lines (108 loc) · 2.55 KB
/
Copy pathComparatorEnum.php
File metadata and controls
123 lines (108 loc) · 2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?php
/**
* Copyright (C) GrizzIT, Inc. All rights reserved.
* See LICENSE for license details.
*/
namespace Ulrack\Dbal\Sql\Common;
use GrizzIt\Enum\Enum;
/**
* @method static ComparatorEnum EQ()
* @method static ComparatorEnum NEQ()
* @method static ComparatorEnum GT()
* @method static ComparatorEnum GTEQ()
* @method static ComparatorEnum LT()
* @method static ComparatorEnum LTEQ()
* @method static ComparatorEnum IN()
* @method static ComparatorEnum NIN()
* @method static ComparatorEnum LIKE()
* @method static ComparatorEnum NOT_LIKE()
* @method static ComparatorEnum IS_NULL()
* @method static ComparatorEnum NOT_NULL()
*/
class ComparatorEnum extends Enum
{
/**
* Equals comparator "=".
* Checks if the field equals the value.
*
* @var string
*/
public const EQ = '= %s';
/**
* Not equals comparator "<>".
* Checks if the field does not equal the value.
*
* @var string
*/
public const NEQ = '<> %s';
/**
* Greater than comparator ">".
* Checks if the field is greater than the value.
*
* @var string
*/
public const GT = '> %s';
/**
* Greater than or equals comparator ">=".
* Checks if the field is greater than or equals the value.
*
* @var string
*/
public const GTEQ = '>= %s';
/**
* Less than comparator "<".
* Checks if the field is less than the value.
*
* @var string
*/
public const LT = '< %s';
/**
* Less than or equals comparator "<=".
* Checks if the field is less than or equals the value.
*
* @var string
*/
public const LTEQ = '<= %s';
/**
* In comparator.
* Checks if the field occurs in the value.
*
* @var string
*/
public const IN = 'IN (%s)';
/**
* Not in comparator.
* Checks if the field does not occur in the value.
*
* @var string
*/
public const NIN = 'NOT IN (%s)';
/**
* Like comparator.
* Checks if the field looks like the value.
*
* @var string
*/
public const LIKE = 'LIKE %s';
/**
* Not like comparator.
* Checks if the field does not look like the value.
*
* @var string
*/
public const NOT_LIKE = 'NOT LIKE %s';
/**
* Is null comparator.
* Checks if the field is null.
*
* @var string
*/
public const IS_NULL = 'IS NULL';
/**
* Not null comparator.
* Checks if the field is not null.
*
* @var string
*/
public const NOT_NULL = 'NOT NULL';
}