fXmlRpc\Serializer\SerializerInterface::serialize PHP Method

serialize() public method

Serialize XML/RPC method name and params into XML representation
public serialize ( string $method, array $params = [] ) : string
$method string
$params array
return string
    public function serialize($method, array $params = []);

Usage Example

Beispiel #1
0
 /** {@inheritdoc} */
 public function call($methodName, array $params = [])
 {
     if (!is_string($methodName)) {
         throw InvalidArgumentException::expectedParameter(0, 'string', $methodName);
     }
     $params = array_merge($this->prependParams, $params, $this->appendParams);
     $payload = $this->serializer->serialize($methodName, $params);
     $response = $this->transport->send($this->uri, $payload);
     return $this->parser->parse($response);
 }
All Usage Examples Of fXmlRpc\Serializer\SerializerInterface::serialize
SerializerInterface