public function __construct($wsdl, array $options, Classmap $classmap = null, TypeConverterCollection $converters = null) { parent::__construct(); $this->checkOptions($options); $this->withWsdl($wsdl)->withTrace($options['debug']); if (isset($options['user_agent'])) { $this->withUserAgent($options['user_agent']); } if (isset($options['cache_type'])) { $this->withWsdlCache($options['cache_type']); } if ($classmap) { $this->withClassmap($classmap); } if ($converters) { $this->withTypeConverters($converters); } }