@@ -120,27 +120,27 @@ Service functions
120120============
121121``` php
122122$this->soapWrapper->add('Currency', function ($service) {
123- ->name() // The name you want to give your service
124- ->wsdl() // The WSDL url
125- ->trace(true) // Optional: (parameter: true/false)
126- ->header() // Optional: (parameters: $namespace,$name,$data,$mustunderstand,$actor)
127- ->customHeader() // Optional: (parameters: $customerHeader) Use this to add a custom SoapHeader or extended class
128- ->cookie() // Optional: (parameters: $name,$value)
129- ->location() // Optional: (parameter: $location)
130- ->certificate() // Optional: (parameter: $certLocation)
131- ->cache(WSDL_CACHE_NONE) // Optional: Set the WSDL cache
123+ $ service
124+ ->wsdl() // The WSDL url
125+ ->trace(true) // Optional: (parameter: true/false)
126+ ->header() // Optional: (parameters: $namespace,$name,$data,$mustunderstand,$actor)
127+ ->customHeader() // Optional: (parameters: $customerHeader) Use this to add a custom SoapHeader or extended class
128+ ->cookie() // Optional: (parameters: $name,$value)
129+ ->location() // Optional: (parameter: $location)
130+ ->certificate() // Optional: (parameter: $certLocation)
131+ ->cache(WSDL_CACHE_NONE) // Optional: Set the WSDL cache
132132
133- // Optional: Set some extra options
134- ->options([
135- 'login' => 'username',
136- 'password' => 'password'
137- ])
138-
139- // Optional: Classmap
140- ->classmap([
141- GetConversionAmount::class,
142- GetConversionAmountResponse::class,
143- ]);
133+ // Optional: Set some extra options
134+ ->options([
135+ 'login' => 'username',
136+ 'password' => 'password'
137+ ])
138+
139+ // Optional: Classmap
140+ ->classmap([
141+ GetConversionAmount::class,
142+ GetConversionAmountResponse::class,
143+ ]);
144144});
145145```
146146
0 commit comments