| @@ 215-223 (lines=9) @@ | ||
| 212 | /** |
|
| 213 | * @return Set |
|
| 214 | */ |
|
| 215 | public function getFieldAsBoolSet($name) |
|
| 216 | { |
|
| 217 | $value = $this->get($name); |
|
| 218 | ||
| 219 | if ($value instanceof Set && $value->getType() == 'bool') { |
|
| 220 | return $value; |
|
| 221 | } |
|
| 222 | return Set::ofTypeAndData('bool', $value); |
|
| 223 | } |
|
| 224 | ||
| 225 | /** |
|
| 226 | * @return Set |
|
| @@ 228-236 (lines=9) @@ | ||
| 225 | /** |
|
| 226 | * @return Set |
|
| 227 | */ |
|
| 228 | public function getFieldAsNumberSet($name) |
|
| 229 | { |
|
| 230 | $value = $this->get($name); |
|
| 231 | ||
| 232 | if ($value instanceof Set && $value->getType() == 'float') { |
|
| 233 | return $value; |
|
| 234 | } |
|
| 235 | return Set::ofTypeAndData('float', $value); |
|
| 236 | } |
|
| 237 | ||
| 238 | /** |
|
| 239 | * @return Set |
|
| @@ 241-249 (lines=9) @@ | ||
| 238 | /** |
|
| 239 | * @return Set |
|
| 240 | */ |
|
| 241 | public function getFieldAsIntegerSet($name) |
|
| 242 | { |
|
| 243 | $value = $this->get($name); |
|
| 244 | ||
| 245 | if ($value instanceof Set && $value->getType() == 'int') { |
|
| 246 | return $value; |
|
| 247 | } |
|
| 248 | return Set::ofTypeAndData('int', $value); |
|
| 249 | } |
|
| 250 | ||
| 251 | /** |
|
| 252 | * @return Set |
|
| @@ 254-262 (lines=9) @@ | ||
| 251 | /** |
|
| 252 | * @return Set |
|
| 253 | */ |
|
| 254 | public function getFieldAsStringSet($name) |
|
| 255 | { |
|
| 256 | $value = $this->get($name); |
|
| 257 | ||
| 258 | if ($value instanceof Set && $value->getType() == 'string') { |
|
| 259 | return $value; |
|
| 260 | } |
|
| 261 | return Set::ofTypeAndData('string', $value); |
|
| 262 | } |
|
| 263 | ||
| 264 | /** |
|
| 265 | * @return Set |
|