/** * @param $operation \GoetasWebservices\XML\WSDLReader\Wsdl\BindingOperation */ public function addOperation(\GoetasWebservices\XML\WSDLReader\Wsdl\Binding\Operation $operation) { $this->operation[$operation->getName()] = $operation; return $this; }
public function __construct(Operation $operation, $name) { parent::__construct($operation->getDefinition()); $this->name = $name; $this->operation = $operation; }
private function loadBindingOperationFault(BindingOperation $bindingOperation, DOMElement $node) { $fault = new BindingOperationFault($bindingOperation, $node->getAttribute("name")); $fault->setDocumentation($this->getDocumentation($node)); $bindingOperation->addFault($fault); return function () use($fault, $node) { $this->dispatcher->dispatch('binding.operation.fault', new BindingOperationFaultEvent($fault, $node)); }; }