src/Encoder.php
public function encodeResponse($response)
    {
        if (!($response instanceof \fpoirotte\XRL\Types\AbstractType)) {
            throw new \InvalidArgumentException('Invalid response');
        }

        $writer = $this->getWriter();
        $writer->startElement('methodResponse');
        $writer->startElement('params');
        $writer->startElement('param');
        $writer->startElement('value');
        $response->write($writer, $this->timezone, $this->stringTag);
        $writer->endElement();
        $writer->endElement();
        $writer->endElement();
        $writer->endElement();
        $result = $this->finalizeWrite($writer);
        return $result;
    }
public function encodeResponse($response)
    {
        if (!($response instanceof \fpoirotte\XRL\Types\AbstractType)) {
            throw new \InvalidArgumentException('Invalid response');
        }

        $writer = $this->getWriter();
        $writer->startElement('methodResponse');
        $writer->startElement('params');
        $writer->startElement('param');
        $writer->startElement('value');
        $response->write($writer, $this->timezone, $this->stringTag);
        $writer->endElement();
        $writer->endElement();
        $writer->endElement();
        $writer->endElement();
        $result = $this->finalizeWrite($writer);
        return $result;
    }
/ \copydoc fpoirotte::XRL::EncoderInterface::encodeResponse()