diff --git a/lib/Resources/BaseResource.php b/lib/Resources/BaseResource.php index 1b57446a..6afa6230 100644 --- a/lib/Resources/BaseResource.php +++ b/lib/Resources/BaseResource.php @@ -64,4 +64,19 @@ public function __toString() $ret .= print_r($this->data, true); return $ret; } + + /** + * Returns the data + * @return \stdClass + */ + public function getData(){ + return $this->data; + } + /** + * Returns the data array + * @return array + */ + public function toArray(){ + return (array)$this->data; + } }