@@ 322-333 (lines=12) @@ | ||
319 | * |
|
320 | * @throws Exception\PropertyException |
|
321 | */ |
|
322 | public function getXML($key) |
|
323 | { |
|
324 | try { |
|
325 | $result = $this->get(self::XML, $key); |
|
326 | if (!$result instanceof DOMDocument) { |
|
327 | return null; |
|
328 | } |
|
329 | } catch (\Exception $e) { |
|
330 | return null; |
|
331 | } |
|
332 | return $result; |
|
333 | } |
|
334 | ||
335 | ||
336 | /** |
|
@@ 358-369 (lines=12) @@ | ||
355 | * |
|
356 | * @throws Exception\PropertyException |
|
357 | */ |
|
358 | public function getDate($key) |
|
359 | { |
|
360 | try { |
|
361 | $result = $this->get(self::DATE, $key); |
|
362 | if (!$result instanceof DateTime) { |
|
363 | return null; |
|
364 | } |
|
365 | } catch (\Exception $e) { |
|
366 | return null; |
|
367 | } |
|
368 | return $result; |
|
369 | } |
|
370 | ||
371 | ||
372 | /** |