Mdb\PayPal\Ipn\ServiceResponse::getBody PHP Method

getBody() public method

public getBody ( ) : string
return string
    public function getBody()
    {
        return $this->body;
    }

Usage Example

コード例 #1
0
 function it_should_throw_an_exception_when_an_unexpected_status_keyword_is_encountered(Message $message, ServiceResponse $serviceResponse)
 {
     $serviceResponse->getBody()->willReturn('foo');
     $this->shouldThrow('UnexpectedValueException')->duringVerify($message);
 }
ServiceResponse