src/Phpro/SoapClient/Client.php
/**
     * Make it possible to debug the last request.
     *
     * @return array
     */
Make it possible to debug the last request.
@return array
Make it possible to debug the last request . @return array
public function debugLastSoapRequest(): array
    {
        $lastRequestInfo = $this->engine->collectLastRequestInfo();
        return [
            'request' => [
                'headers' => trim($lastRequestInfo->getLastRequestHeaders()),
                'body'    => XmlFormatter::format($lastRequestInfo->getLastRequest()),
            ],
            'response' => [
                'headers' => trim($lastRequestInfo->getLastResponseHeaders()),
                'body'    => XmlFormatter::format($lastRequestInfo->getLastResponse()),
            ]
        ];
    }
public function debugLastSoapRequest ( ) : array { $ lastRequestInfo = $ this -> engine -> collectLastRequestInfo ( ) ; return [ 'request' => [ 'headers' => trim ( $ lastRequestInfo -> getLastRequestHeaders ( ) ) , 'body' => XmlFormatter :: format ( $ lastRequestInfo -> getLastRequest ( ) ) , ] , 'response' => [ 'headers' => trim ( $ lastRequestInfo -> getLastResponseHeaders ( ) ) , 'body' => XmlFormatter :: format ( $ lastRequestInfo -> getLastResponse ( ) ) , ] ] ; }
Make it possible to debug the last request.
Make it possible to debug the last request .