protected function encode($method, array $parameters = [])
    {
        $this->encoder = $this->encoder ?: new XmlrpcEncoder();

        return $this->encoder->encodeCall($method, $parameters);
    }
protected function encode($method, array $parameters = [])
    {
        $this->encoder = $this->encoder ?: new XmlrpcEncoder();

        return $this->encoder->encodeCall($method, $parameters);
    }
protected function encode ( $ method , array $ parameters = [ ] ) { $ this -> encoder = $ this -> encoder ? : new XmlrpcEncoder ( ) ; return $ this -> encoder -> encodeCall ( $ method , $ parameters ) ; }
Encodes xmlrpc call into xml string.

@param $method
@param array $parameters

@return string

@throws XmlrpcException
Encodes xmlrpc call into xml string .