Mdb\PayPal\Ipn\ServiceResponse::getBody PHP Метод

getBody() публичный Метод

public getBody ( ) : string
Результат string
    public function getBody()
    {
        return $this->body;
    }

Usage Example

 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