| @@ 196-207 (lines=12) @@ | ||
| 193 | * |
|
| 194 | * @throws Exception\PropertyException |
|
| 195 | */ |
|
| 196 | public function getObject($key) |
|
| 197 | { |
|
| 198 | try { |
|
| 199 | $result = $this->get(self::OBJECT, $key); |
|
| 200 | if (!settype($result, 'object')) { |
|
| 201 | return null; |
|
| 202 | } |
|
| 203 | } catch (\Exception $e) { |
|
| 204 | return null; |
|
| 205 | } |
|
| 206 | return $result; |
|
| 207 | } |
|
| 208 | ||
| 209 | ||
| 210 | /** |
|
| @@ 247-258 (lines=12) @@ | ||
| 244 | * |
|
| 245 | * @throws Exception\PropertyException |
|
| 246 | */ |
|
| 247 | public function getArray($key) |
|
| 248 | { |
|
| 249 | try { |
|
| 250 | $result = $this->get(self::DATA_ARRAY, $key); |
|
| 251 | if (!settype($result, 'array')) { |
|
| 252 | return null; |
|
| 253 | } |
|
| 254 | } catch (\Exception $e) { |
|
| 255 | return null; |
|
| 256 | } |
|
| 257 | return $result; |
|
| 258 | } |
|
| 259 | ||
| 260 | ||
| 261 | /** |
|
| @@ 287-298 (lines=12) @@ | ||
| 284 | * |
|
| 285 | * @throws Exception\PropertyException |
|
| 286 | */ |
|
| 287 | public function getData($key) |
|
| 288 | { |
|
| 289 | try { |
|
| 290 | $result = $this->get(self::STRING, $key); |
|
| 291 | if (!settype($result, 'string')) { |
|
| 292 | return null; |
|
| 293 | } |
|
| 294 | } catch (\Exception $e) { |
|
| 295 | return null; |
|
| 296 | } |
|
| 297 | return $result; |
|
| 298 | } |
|
| 299 | ||
| 300 | ||
| 301 | /** |
|
| @@ 402-413 (lines=12) @@ | ||
| 399 | * |
|
| 400 | * @throws Exception\PropertyException |
|
| 401 | */ |
|
| 402 | public function getString($key) |
|
| 403 | { |
|
| 404 | try { |
|
| 405 | $result = $this->get(self::STRING, $key); |
|
| 406 | if (!settype($result, 'string')) { |
|
| 407 | return null; |
|
| 408 | } |
|
| 409 | } catch (\Exception $e) { |
|
| 410 | return null; |
|
| 411 | } |
|
| 412 | return $result; |
|
| 413 | } |
|
| 414 | ||
| 415 | ||
| 416 | /** |
|
| @@ 442-453 (lines=12) @@ | ||
| 439 | * |
|
| 440 | * @throws Exception\PropertyException |
|
| 441 | */ |
|
| 442 | public function getBoolean($key) |
|
| 443 | { |
|
| 444 | try { |
|
| 445 | $result = $this->get(self::BOOLEAN, $key); |
|
| 446 | if (!settype($result, 'boolean')) { |
|
| 447 | return false; |
|
| 448 | } |
|
| 449 | } catch (\Exception $e) { |
|
| 450 | return false; |
|
| 451 | } |
|
| 452 | return $result; |
|
| 453 | } |
|
| 454 | ||
| 455 | /** |
|
| 456 | * @param string $key |
|