12 namespace fpoirotte\XRL;
35 if (!is_string($xmlResult)) {
36 throw new \InvalidArgumentException(
'Not a valid response');
39 $this->result = $xmlResult;
81 $result = (string) $this->result;
82 $this->
addHeader(
'Content-Type: text/xml')
83 ->addHeader(
'Content-Length: ' . strlen(
$result))
This class represents the response to an XML-RPC request.
Interface for the response to an XML-RPC request, as produced by an XML-RPC server.
$result
The response to an XML-RPC request, as serialized XML.