Zend\Soap\Server::addFunction
Attach a function as a server method
Signature
public function addFunction(array|string
$function,
[string
$namespace = ''] )
Parameters
$function
— object- Function name, array of function names to attach,
or SOAP_FUNCTIONS_ALL to attach all functions $namespace
— string- Ignored
Returns
- self
Errors/Exceptions
-
InvalidArgumentException
- on invalid functions