Exemplo n.º 1
0
 /**
  * @param $fault \GoetasWebservices\XML\WSDLReader\Wsdl\Binding\OperationFault
  */
 public function addFault(\GoetasWebservices\XML\WSDLReader\Wsdl\Binding\OperationFault $fault)
 {
     $this->fault[$fault->getName()] = $fault;
     return $this;
 }
Exemplo n.º 2
0
 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));
     };
 }