A collection of type converters
Ejemplo n.º 1
0
 /**
  * @param TypeConverterInterface $typeConverter
  */
 public function addTypeConverter(TypeConverterInterface $typeConverter)
 {
     $this->converters->add($typeConverter);
 }
Ejemplo n.º 2
0
 function let(ClassMapCollection $classMap, TypeConverterCollection $typeConverters)
 {
     $classMap->toSoapClassMap()->willReturn([]);
     $typeConverters->toSoapTypeMap()->willReturn([]);
     $this->beConstructedWith($classMap, $typeConverters);
 }
Ejemplo n.º 3
0
 /**
  * @param string $wsdl
  * @param array $soapOptions
  *
  * @return SoapClient
  */
 public function factory($wsdl, array $soapOptions = [])
 {
     $defaults = ['trace' => true, 'exceptions' => true, 'keep_alive' => true, 'cache_wsdl' => WSDL_CACHE_BOTH, 'features' => SOAP_SINGLE_ELEMENT_ARRAYS, 'classmap' => $this->classMap->toSoapClassMap(), 'typemap' => $this->typeConverters->toSoapTypeMap()];
     $options = array_merge($defaults, $soapOptions);
     return new SoapClient($wsdl, $options);
 }