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

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

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

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

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

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