public function append(Response $xResponse)
    {
        if(!$this->xResponse)
        {
            $this->xResponse = $xResponse;
        }
        elseif(get_class($this->xResponse) == get_class($xResponse))
        {
            if($this->xResponse != $xResponse)
            {
                $this->xResponse->appendResponse($xResponse);
            }
        }
        else
        {
            $this->debug($this->trans('errors.mismatch.types', array('class' => get_class($xResponse))));
        }
    }
public function append(Response $xResponse)
    {
        if(!$this->xResponse)
        {
            $this->xResponse = $xResponse;
        }
        elseif(get_class($this->xResponse) == get_class($xResponse))
        {
            if($this->xResponse != $xResponse)
            {
                $this->xResponse->appendResponse($xResponse);
            }
        }
        else
        {
            $this->debug($this->trans('errors.mismatch.types', array('class' => get_class($xResponse))));
        }
    }
public function append ( Response $ xResponse ) { if ( ! $ this -> xResponse ) { $ this -> xResponse = $ xResponse ; } elseif ( get_class ( $ this -> xResponse ) == get_class ( $ xResponse ) ) { if ( $ this -> xResponse != $ xResponse ) { $ this -> xResponse -> appendResponse ( $ xResponse ) ; } } else { $ this -> debug ( $ this -> trans ( 'errors.mismatch.types' , array ( 'class' => get_class ( $ xResponse ) ) ) ) ; } }
Append one response object onto the end of another

You cannot append a given response onto the end of a response of different type.
If no prior response has been appended, this response becomes the main response
object to which other response objects will be appended.

@param Response        $xResponse            The response object to be appended

@return void
Append one response object onto the end of another