-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathproductPackagingService.php
More file actions
55 lines (53 loc) · 2.48 KB
/
productPackagingService.php
File metadata and controls
55 lines (53 loc) · 2.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
use Flexnet\ProductPackagingService\Result;
use Flexsim\FlexnetOperations\Assembler as FlexnetAssembler;
use Phpro\SoapClient\CodeGenerator\Assembler;
use Phpro\SoapClient\CodeGenerator\Config\Config;
use Phpro\SoapClient\CodeGenerator\Rules;
use Phpro\SoapClient\CodeGenerator\Rules\RuleSet;
use Phpro\SoapClient\Soap\DefaultEngineFactory;
use Soap\ExtSoapEngine\ExtSoapOptions;
return Config::create()
->setEngine($engine = DefaultEngineFactory::create(
ExtSoapOptions::defaults(__DIR__.'/productPackagingService.wsdl', [])
->disableWsdlCache()
))
->setTypeDestination('flexnet/ProductPackagingService/Type')
->setTypeNamespace('Flexnet/ProductPackagingService\Type')
->setClientDestination('flexnet/ProductPackagingService')
->setClientName('ProductPackagingServiceClient')
->setClientNamespace('Flexnet\\ProductPackagingService')
->setClassMapDestination('flexnet/ProductPackagingService')
->setClassMapName('ProductPackagingServiceClassmap')
->setClassMapNamespace('Flexnet\\ProductPackagingService')
->setRuleSet(new RuleSet([
new Rules\AssembleRule(new Assembler\ClassMapAssembler),
new Rules\AssembleRule(new Assembler\ClientConstructorAssembler),
new Rules\AssembleRule(new Assembler\ClientMethodAssembler),
]))
->addRule(new Rules\AssembleRule(new FlexnetAssembler\PropertyAssembler(__DIR__.'/productPackagingService.json')))
->addRule(new Rules\AssembleRule(new FlexnetAssembler\ConstructorAssembler(
(new FlexnetAssembler\ConstructorAssemblerOptions(__DIR__.'/productPackagingService.json'))->withTypeHints()
)))
->addRule(new Rules\AssembleRule(new FlexnetAssembler\GetterAssembler(
(new FlexnetAssembler\GetterAssemblerOptions(__DIR__.'/productPackagingService.json'))->withReturnType()
)))
->addRule(new Rules\AssembleRule(new FlexnetAssembler\ImmutableSetterAssembler(
(new FlexnetAssembler\ImmutableSetterAssemblerOptions(__DIR__.'/productPackagingService.json'))->withTypeHints()->withReturnTypes()
)))
->addRule(
new Rules\IsRequestRule(
$engine->getMetadata(),
new Rules\MultiRule([
new Rules\AssembleRule(new Assembler\RequestAssembler),
])
)
)
->addRule(
new Rules\IsResultRule(
$engine->getMetadata(),
new Rules\MultiRule([
new Rules\AssembleRule(new FlexnetAssembler\ResultAssembler(Result::class)),
])
)
);