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