Track   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 32
rs 10
c 0
b 0
f 0
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A track() 0 12 2
A getResult() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ColissimoTracking\ServiceType;
6
7
use SoapFault;
8
use SoapClient\SoapClientBase;
9
10
/**
11
 * This class stands for Track ServiceType
12
 * @subpackage Services
13
 * @author WsdlToPhp <[email protected]>
14
 */
15
class Track extends SoapClientBase
16
{
17
    /**
18
     * Method to call the operation originally named track
19
     * @uses SoapClientBase::getSoapClient()
20
     * @uses SoapClientBase::setResult()
21
     * @uses SoapClientBase::saveLastError()
22
     * @param \ColissimoTracking\StructType\Track $parameters
23
     * @return \ColissimoTracking\StructType\TrackResponse|bool
24
     */
25
    public function track(\ColissimoTracking\StructType\Track $parameters)
26
    {
27
        try {
28
            $this->setResult($resultTrack = $this->getSoapClient()->__soapCall('track', [
29
                $parameters,
30
            ], [], [], $this->outputHeaders));
31
        
32
            return $resultTrack;
33
        } catch (SoapFault $soapFault) {
34
            $this->saveLastError(__METHOD__, $soapFault);
35
        
36
            return false;
37
        }
38
    }
39
    /**
40
     * Returns the result
41
     * @see SoapClientBase::getResult()
42
     * @return \ColissimoTracking\StructType\TrackResponse
43
     */
44
    public function getResult()
45
    {
46
        return parent::getResult();
47
    }
48
}
49