Soap server with attachments refactoring
This commit is contained in:
@ -2,6 +2,8 @@
|
||||
|
||||
namespace BeSimple\SoapServer\SoapOptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class SoapServerOptions
|
||||
{
|
||||
const SOAP_SERVER_PERSISTENCE_NONE = 0;
|
||||
@ -43,6 +45,22 @@ class SoapServerOptions
|
||||
$this->persistence = $persistence;
|
||||
}
|
||||
|
||||
public function getHandler()
|
||||
{
|
||||
if ($this->hasHandlerObject()) {
|
||||
|
||||
return $this->getHandlerObject();
|
||||
|
||||
} else if ($this->hasHandlerClass()) {
|
||||
|
||||
return $this->getHandlerClass();
|
||||
|
||||
} else {
|
||||
|
||||
throw new Exception('No HandlerClass or HandlerObject set');
|
||||
}
|
||||
}
|
||||
|
||||
public function hasHandlerClass()
|
||||
{
|
||||
return $this->handlerClass !== null;
|
||||
|
Reference in New Issue
Block a user