Fixed issue #4
This commit is contained in:
parent
b0efd027d5
commit
838e16b1c4
|
@ -39,6 +39,17 @@ class SoapResponse extends Response
|
||||||
$this->setReturnValue($returnValue);
|
$this->setReturnValue($returnValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param SoapHeader $soapHeader
|
||||||
|
*/
|
||||||
|
public function addSoapHeader(SoapHeader $soapHeader)
|
||||||
|
{
|
||||||
|
$this->soapHeaders->add($soapHeader);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return \BeSimple\SoapBundle\Util\Collection
|
||||||
|
*/
|
||||||
public function getSoapHeaders()
|
public function getSoapHeaders()
|
||||||
{
|
{
|
||||||
return $this->soapHeaders;
|
return $this->soapHeaders;
|
||||||
|
|
|
@ -28,8 +28,7 @@ class Collection implements \IteratorAggregate, \Countable
|
||||||
throw new \InvalidArgumentException(sprintf('Cannot add class "%s" because it is not an instance of "%s"', get_class($element), $this->class));
|
throw new \InvalidArgumentException(sprintf('Cannot add class "%s" because it is not an instance of "%s"', get_class($element), $this->class));
|
||||||
}
|
}
|
||||||
|
|
||||||
$getter = $this->getter;
|
$this->elements[$element->{$this->getter}()] = $element;
|
||||||
$this->elements[$element->$getter()] = $element;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addAll($elements)
|
public function addAll($elements)
|
||||||
|
|
Loading…
Reference in New Issue