-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the Operator constants into a separate interface
- Loading branch information
Showing
2 changed files
with
89 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Cundd\Rest\VirtualObject\Persistence; | ||
|
||
interface OperatorInterface | ||
{ | ||
/** | ||
* The '=' comparison operator. | ||
* | ||
* @api | ||
*/ | ||
public const OPERATOR_EQUAL_TO = 1; | ||
|
||
/** | ||
* The '!=' comparison operator. | ||
* | ||
* @api | ||
*/ | ||
public const OPERATOR_NOT_EQUAL_TO = 2; | ||
|
||
/** | ||
* The '<' comparison operator. | ||
* | ||
* @api | ||
*/ | ||
public const OPERATOR_LESS_THAN = 3; | ||
|
||
/** | ||
* The '<=' comparison operator. | ||
* | ||
* @api | ||
*/ | ||
public const OPERATOR_LESS_THAN_OR_EQUAL_TO = 4; | ||
|
||
/** | ||
* The '>' comparison operator. | ||
* | ||
* @api | ||
*/ | ||
public const OPERATOR_GREATER_THAN = 5; | ||
|
||
/** | ||
* The '>=' comparison operator. | ||
* | ||
* @api | ||
*/ | ||
public const OPERATOR_GREATER_THAN_OR_EQUAL_TO = 6; | ||
|
||
/** | ||
* The 'like' comparison operator. | ||
* | ||
* @api | ||
*/ | ||
public const OPERATOR_LIKE = 7; | ||
|
||
/** | ||
* The 'contains' comparison operator for collections. | ||
* | ||
* @api | ||
*/ | ||
public const OPERATOR_CONTAINS = 8; | ||
|
||
/** | ||
* The 'in' comparison operator. | ||
* | ||
* @api | ||
*/ | ||
public const OPERATOR_IN = 9; | ||
|
||
/** | ||
* The 'is NULL' comparison operator. | ||
* | ||
* @api | ||
*/ | ||
public const OPERATOR_IS_NULL = 10; | ||
|
||
/** | ||
* The 'is empty' comparison operator for collections. | ||
* | ||
* @api | ||
*/ | ||
public const OPERATOR_IS_EMPTY = 11; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters