Fixed typo

This commit is contained in:
Francis Besset 2011-10-10 20:13:16 +02:00
parent c243957bdf
commit 40eacb99e5
1 changed files with 7 additions and 9 deletions

View File

@ -22,7 +22,7 @@ use BeSimple\SoapCommon\Converter\TypeConverterInterface;
abstract class AbstractSoapBuilder abstract class AbstractSoapBuilder
{ {
protected $wsdl; protected $wsdl;
protected $soapOptions; protected $soapOptions = array();
/** /**
* @return AbstractSoapBuilder * @return AbstractSoapBuilder
@ -40,11 +40,9 @@ abstract class AbstractSoapBuilder
public function __construct() public function __construct()
{ {
$this->soapOptions = array( $this->soapOptions['features'] = 0;
'features' => 0, $this->soapOptions['classmap'] = new Classmap();
'classmap' => new Classmap(), $this->soapOptions['typemap'] = new TypeConverterCollection();
'typemap' => new TypeConverterCollection(),
);
} }
public function getWsdl() public function getWsdl()
@ -204,7 +202,7 @@ abstract class AbstractSoapBuilder
*/ */
public function withClassMapping($xmlType, $phpType) public function withClassMapping($xmlType, $phpType)
{ {
$this->options['classmap']->add($xmlType, $phpType); $this->soapOptions['classmap']->add($xmlType, $phpType);
return $this; return $this;
} }
@ -220,9 +218,9 @@ abstract class AbstractSoapBuilder
public function withClassmap(Classmap $classmap, $merge = true) public function withClassmap(Classmap $classmap, $merge = true)
{ {
if ($merge) { if ($merge) {
$this->options['classmap']->addClassmap($classmap); $this->soapOptions['classmap']->addClassmap($classmap);
} else { } else {
$this->options['classmap']->set($classmap->all()); $this->soapOptions['classmap']->set($classmap->all());
} }
return $this; return $this;