Zend\XmlRpc\Server::setClass
Attach class methods as XMLRPC method handlers
$class may be either a class name or an object. Reflection is done on the class or object to determine the available public methods, and each is attached to the server as an available method; if a $namespace has been provided, that namespace is used to prefix the XMLRPC method names. Any additional arguments beyond $namespace will be passed to a method at invocation.
Signature
public function setClass(string|object
$class,
[string
$namespace = '',
[mixed
$argv = null]] )
Parameters
$class
— object
$namespace
— string- Optional
$argv
— mixed- Optional arguments to pass to methods
Returns
- void
Errors/Exceptions
-
InvalidArgumentException
- on invalid input