Zend\Soap\Server::setClass
Attach a class to a server
Accepts a class name to use when handling requests. Any additional arguments will be passed to that class' constructor when instantiated. See to set pre-configured object instances as request handlers.
Signature
public function setClass(string|object
$class,
[string
$namespace = '',
[null|array
$argv = null]] )
Parameters
$class
— object- Class name or object instance which executes
SOAP Requests at endpoint. $namespace
— string$argv
— object
Returns
- self
Errors/Exceptions
-
InvalidArgumentException
- if called more than once, or if class does not exist