protected function bodyObject()
    {
        if (is_xml($this->body)) {
            return xml_decode($this->body);
        }

        if (is_json($this->body)) {
            return json_decode($this->body);
        }

    }
protected function bodyObject()
    {
        if (is_xml($this->body)) {
            return xml_decode($this->body);
        }

        if (is_json($this->body)) {
            return json_decode($this->body);
        }

    }
protected function bodyObject ( ) { if ( is_xml ( $ this -> body ) ) { return xml_decode ( $ this -> body ) ; } if ( is_json ( $ this -> body ) ) { return json_decode ( $ this -> body ) ; } }
It return the xml|json as an object.

@return array
It return the xml|json as an object .