@@ 21-28 (lines=8) @@ | ||
18 | /** |
|
19 | * @param integer|double|\DateTime $v Specifies the upper bounds for numeric values (the value must be less than this value) |
|
20 | */ |
|
21 | public function setMaxExclusive($v) |
|
22 | { |
|
23 | if (is_int($v)) { |
|
24 | $this->maxInclusive = $v - 1; |
|
25 | } else { |
|
26 | $this->minInclusive = $v - 0.000001; |
|
27 | } |
|
28 | } |
|
29 | ||
30 | /** |
|
31 | * @param integer|double|\DateTime $v Specifies the upper bounds for numeric values (the value must be less than or equal to this value) |
|
@@ 41-48 (lines=8) @@ | ||
38 | /** |
|
39 | * @param integer|double|\DateTime $v Specifies the lower bounds for numeric values (the value must be greater than this value) |
|
40 | */ |
|
41 | public function setMinExclusive($v) |
|
42 | { |
|
43 | if (is_int($v)) { |
|
44 | $this->minInclusive = $v + 1; |
|
45 | } else { |
|
46 | $this->minInclusive = $v + 0.000001; |
|
47 | } |
|
48 | } |
|
49 | ||
50 | /** |
|
51 | * @param integer|double|\DateTime $v Specifies the lower bounds for numeric values (the value must be greater than or equal to this value) |