| @@ 23-30 (lines=8) @@ | ||
| 20 | * @param int|float|\DateTime|\DateInterval $v Specifies the upper bounds for numeric values (the value must be |
|
| 21 | * less than this value) |
|
| 22 | */ |
|
| 23 | public function setMaxExclusive($v) |
|
| 24 | { |
|
| 25 | if (is_int($v)) { |
|
| 26 | $this->maxInclusive = $v - 1; |
|
| 27 | } else { |
|
| 28 | $this->minInclusive = $v - 0.000001; |
|
| 29 | } |
|
| 30 | } |
|
| 31 | ||
| 32 | /** |
|
| 33 | * @param int|float|\DateTime|\DateInterval $v Specifies the upper bounds for numeric values |
|
| @@ 45-52 (lines=8) @@ | ||
| 42 | * @param int|float|\DateTime|\DateInterval $v Specifies the lower bounds for numeric values |
|
| 43 | * (the value must be greater than this value) |
|
| 44 | */ |
|
| 45 | public function setMinExclusive($v) |
|
| 46 | { |
|
| 47 | if (is_int($v)) { |
|
| 48 | $this->minInclusive = $v + 1; |
|
| 49 | } else { |
|
| 50 | $this->minInclusive = $v + 0.000001; |
|
| 51 | } |
|
| 52 | } |
|
| 53 | ||
| 54 | /** |
|
| 55 | * @param int|float|\DateTime|\DateInterval $v Specifies the lower bounds for numeric values |
|