ClientInstantiator   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 27
c 0
b 0
f 0
ccs 0
cts 4
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A instantiateClient() 0 4 1
A instantiateBasicClient() 0 4 1
1
<?php
2
3
namespace LaFourchette\AdobeCampaignClientBundle\Client;
4
5
/**
6
 * Instantiate SOAP client class, untestable so nothing else
7
 */
8
class ClientInstantiator
9
{
10
    /**
11
     * Instantiate an AdobeCampaign Client
12
     *
13
     * @param $wsdlPath
14
     *
15
     * @return Client
16
     */
17
    public function instantiateClient($wsdlPath)
18
    {
19
        return new Client($wsdlPath);
20
    }
21
22
    /**
23
     * Instantiate a classic php SOAPClient
24
     *
25
     * @param $wsdl
26
     * @param $options
27
     *
28
     * @return \SoapClient
29
     */
30
    public function instantiateBasicClient($wsdl, $options)
31
    {
32
        return new \SoapClient($wsdl, $options);
33
    }
34
}
35