| @@ 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 | ||
| @@ 137-150 (lines=14) @@ | ||
| 134 | * |
|
| 135 | * @return int |
|
| 136 | */ |
|
| 137 | private function getStorageDefValidatorState($minValue, $maxValue) |
|
| 138 | { |
|
| 139 | $state = 0; |
|
| 140 | ||
| 141 | if ($minValue !== null) { |
|
| 142 | $state |= self::HAS_MIN_VALUE; |
|
| 143 | } |
|
| 144 | ||
| 145 | if ($maxValue !== null) { |
|
| 146 | $state |= self::HAS_MAX_VALUE; |
|
| 147 | } |
|
| 148 | ||
| 149 | return $state; |
|
| 150 | } |
|
| 151 | } |
|
| 152 | ||