-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlicenseService.php
More file actions
55 lines (53 loc) · 2.35 KB
/
licenseService.php
File metadata and controls
55 lines (53 loc) · 2.35 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\LicenseService\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__.'/licenseService.wsdl', [])
->disableWsdlCache()
))
->setTypeDestination('flexnet/LicenseService/Type')
->setTypeNamespace('Flexnet/LicenseService\Type')
->setClientDestination('flexnet/LicenseService')
->setClientName('LicenseServiceClient')
->setClientNamespace('Flexnet\\LicenseService')
->setClassMapDestination('flexnet/LicenseService')
->setClassMapName('LicenseServiceClassmap')
->setClassMapNamespace('Flexnet\\LicenseService')
->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__.'/licenseService.json')))
->addRule(new Rules\AssembleRule(new FlexnetAssembler\ConstructorAssembler(
(new FlexnetAssembler\ConstructorAssemblerOptions(__DIR__.'/licenseService.json'))->withTypeHints()
)))
->addRule(new Rules\AssembleRule(new FlexnetAssembler\GetterAssembler(
(new FlexnetAssembler\GetterAssemblerOptions(__DIR__.'/licenseService.json'))->withReturnType()
)))
->addRule(new Rules\AssembleRule(new FlexnetAssembler\ImmutableSetterAssembler(
(new FlexnetAssembler\ImmutableSetterAssemblerOptions(__DIR__.'/licenseService.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)),
])
)
);