PointRetraitAcheminement   A
last analyzed

Complexity

Total Complexity 13

Size/Duplication

Total Lines 104
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 13
eloc 23
c 1
b 0
f 0
dl 0
loc 104
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A setVersionPlanTri() 0 8 3
A getVersionPlanTri() 0 3 1
A setDistributionSort() 0 8 3
A getDistributionSort() 0 3 1
A __construct() 0 6 1
A setLotAcheminement() 0 8 3
A getLotAcheminement() 0 3 1
1
<?php
2
3
namespace ColissimoPickupPoint\StructType;
4
5
use \WsdlToPhp\PackageBase\AbstractStructBase;
6
7
/**
8
 * This class stands for pointRetraitAcheminement StructType
9
 * @subpackage Structs
10
 * @author WsdlToPhp <[email protected]>
11
 */
12
class PointRetraitAcheminement extends PointRetrait
13
{
14
    /**
15
     * The distributionSort
16
     * Meta information extracted from the WSDL
17
     * - minOccurs: 0
18
     * @var string
19
     */
20
    public $distributionSort;
21
    /**
22
     * The lotAcheminement
23
     * Meta information extracted from the WSDL
24
     * - minOccurs: 0
25
     * @var string
26
     */
27
    public $lotAcheminement;
28
    /**
29
     * The versionPlanTri
30
     * Meta information extracted from the WSDL
31
     * - minOccurs: 0
32
     * @var string
33
     */
34
    public $versionPlanTri;
35
    /**
36
     * Constructor method for pointRetraitAcheminement
37
     * @uses PointRetraitAcheminement::setDistributionSort()
38
     * @uses PointRetraitAcheminement::setLotAcheminement()
39
     * @uses PointRetraitAcheminement::setVersionPlanTri()
40
     * @param string $distributionSort
41
     * @param string $lotAcheminement
42
     * @param string $versionPlanTri
43
     */
44
    public function __construct($distributionSort = null, $lotAcheminement = null, $versionPlanTri = null)
45
    {
46
        $this
47
            ->setDistributionSort($distributionSort)
48
            ->setLotAcheminement($lotAcheminement)
49
            ->setVersionPlanTri($versionPlanTri);
50
    }
51
    /**
52
     * Get distributionSort value
53
     * @return string|null
54
     */
55
    public function getDistributionSort()
56
    {
57
        return $this->distributionSort;
58
    }
59
    /**
60
     * Set distributionSort value
61
     * @param string $distributionSort
62
     * @return \ColissimoPickupPoint\StructType\PointRetraitAcheminement
63
     */
64
    public function setDistributionSort($distributionSort = null)
65
    {
66
        // validation for constraint: string
67
        if (!is_null($distributionSort) && !is_string($distributionSort)) {
0 ignored issues
show
introduced by
The condition is_string($distributionSort) is always true.
Loading history...
68
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($distributionSort, true), gettype($distributionSort)), __LINE__);
69
        }
70
        $this->distributionSort = $distributionSort;
71
        return $this;
72
    }
73
    /**
74
     * Get lotAcheminement value
75
     * @return string|null
76
     */
77
    public function getLotAcheminement()
78
    {
79
        return $this->lotAcheminement;
80
    }
81
    /**
82
     * Set lotAcheminement value
83
     * @param string $lotAcheminement
84
     * @return \ColissimoPickupPoint\StructType\PointRetraitAcheminement
85
     */
86
    public function setLotAcheminement($lotAcheminement = null)
87
    {
88
        // validation for constraint: string
89
        if (!is_null($lotAcheminement) && !is_string($lotAcheminement)) {
0 ignored issues
show
introduced by
The condition is_string($lotAcheminement) is always true.
Loading history...
90
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($lotAcheminement, true), gettype($lotAcheminement)), __LINE__);
91
        }
92
        $this->lotAcheminement = $lotAcheminement;
93
        return $this;
94
    }
95
    /**
96
     * Get versionPlanTri value
97
     * @return string|null
98
     */
99
    public function getVersionPlanTri()
100
    {
101
        return $this->versionPlanTri;
102
    }
103
    /**
104
     * Set versionPlanTri value
105
     * @param string $versionPlanTri
106
     * @return \ColissimoPickupPoint\StructType\PointRetraitAcheminement
107
     */
108
    public function setVersionPlanTri($versionPlanTri = null)
109
    {
110
        // validation for constraint: string
111
        if (!is_null($versionPlanTri) && !is_string($versionPlanTri)) {
0 ignored issues
show
introduced by
The condition is_string($versionPlanTri) is always true.
Loading history...
112
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($versionPlanTri, true), gettype($versionPlanTri)), __LINE__);
113
        }
114
        $this->versionPlanTri = $versionPlanTri;
115
        return $this;
116
    }
117
}
118