public function toArray($default = true)
    {
        if ( $default ) $this->setDefaults();
        return array(
            'responseCode' => $this->getResponseCode(),
            'body' => $this->getBody()->toString(),
            'headers' => $this->getHeaders()
        );
    }
public function toArray($default = true)
    {
        if ( $default ) $this->setDefaults();
        return array(
            'responseCode' => $this->getResponseCode(),
            'body' => $this->getBody()->toString(),
            'headers' => $this->getHeaders()
        );
    }
public function toArray ( $ default = true ) { if ( $ default ) $ this -> setDefaults ( ) ; return array ( 'responseCode' => $ this -> getResponseCode ( ) , 'body' => $ this -> getBody ( ) -> toString ( ) , 'headers' => $ this -> getHeaders ( ) ) ; }
Returns a array with the values of this Response

@param  boolean $default if TRUE setDefaults() is called
@return array
Returns a array with the values of this Response