| @@ 131-144 (lines=14) @@ | ||
| 128 | * |
|
| 129 | * @return int |
|
| 130 | */ |
|
| 131 | private function getStorageDefValidatorState($minValue, $maxValue) |
|
| 132 | { |
|
| 133 | $state = 0; |
|
| 134 | ||
| 135 | if ($minValue !== null) { |
|
| 136 | $state |= self::HAS_MIN_VALUE; |
|
| 137 | } |
|
| 138 | ||
| 139 | if ($maxValue !== null) { |
|
| 140 | $state |= self::HAS_MAX_VALUE; |
|
| 141 | } |
|
| 142 | ||
| 143 | return $state; |
|
| 144 | } |
|
| 145 | } |
|
| 146 | ||
| @@ 129-142 (lines=14) @@ | ||
| 126 | * |
|
| 127 | * @return int |
|
| 128 | */ |
|
| 129 | private function getStorageDefValidatorState($minValue, $maxValue) |
|
| 130 | { |
|
| 131 | $state = 0; |
|
| 132 | ||
| 133 | if ($minValue !== null) { |
|
| 134 | $state |= self::HAS_MIN_VALUE; |
|
| 135 | } |
|
| 136 | ||
| 137 | if ($maxValue !== null) { |
|
| 138 | $state |= self::HAS_MAX_VALUE; |
|
| 139 | } |
|
| 140 | ||
| 141 | return $state; |
|
| 142 | } |
|
| 143 | } |
|
| 144 | ||