| Total Complexity | 2 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | final class Between |
||
| 8 | { |
||
| 9 | public const NOT_BETWEEN = 'NOT BETWEEN'; |
||
| 10 | |||
| 11 | public const BETWEEN = 'BETWEEN'; |
||
| 12 | |||
| 13 | /** |
||
|
|
|||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | private $operator; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var int|string |
||
| 20 | */ |
||
| 21 | private $key; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var int|string |
||
| 25 | */ |
||
| 26 | private $min; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var int|string |
||
| 30 | */ |
||
| 31 | private $max; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $operator |
||
| 35 | * @param int|string $key |
||
| 36 | * @param int|string $min |
||
| 37 | * @param int|string $max |
||
| 38 | */ |
||
| 39 | 2 | public function __construct(string $operator, $key, $min, $max) |
|
| 40 | { |
||
| 41 | 2 | $this->operator = $operator; |
|
| 42 | 2 | $this->key = $key; |
|
| 43 | 2 | $this->min = $min; |
|
| 44 | 2 | $this->max = $max; |
|
| 45 | 2 | } |
|
| 46 | |||
| 47 | 2 | public function __toString() : string |
|
| 50 | } |
||
| 51 | } |
||
| 52 |