1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\Secext; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* Class representing SecurityHeaderType |
7
|
|
|
* |
8
|
|
|
* This complexType defines header block to use for security-relevant data directed |
9
|
|
|
* at a specific SOAP actor. |
10
|
|
|
* XSD Type: SecurityHeaderType |
11
|
|
|
*/ |
12
|
|
View Code Duplication |
class SecurityHeaderType |
|
|
|
|
13
|
|
|
{ |
14
|
|
|
|
15
|
|
|
/** |
16
|
|
|
* @property mixed[] $anyAttribute |
17
|
|
|
*/ |
18
|
|
|
private $anyAttribute = array( |
19
|
|
|
|
20
|
|
|
); |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* @property mixed[] $anyElement |
24
|
|
|
*/ |
25
|
|
|
private $anyElement = array( |
26
|
|
|
|
27
|
|
|
); |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* Adds as array |
31
|
|
|
* |
32
|
|
|
* @return self |
33
|
|
|
* @param mixed $array |
34
|
|
|
*/ |
35
|
|
|
public function addToAnyAttribute($array) |
36
|
|
|
{ |
37
|
|
|
$this->anyAttribute[] = $array; |
38
|
|
|
return $this; |
39
|
|
|
} |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* isset anyAttribute |
43
|
|
|
* |
44
|
|
|
* @param scalar $index |
45
|
|
|
* @return boolean |
46
|
|
|
*/ |
47
|
|
|
public function issetAnyAttribute($index) |
48
|
|
|
{ |
49
|
|
|
return isset($this->anyAttribute[$index]); |
50
|
|
|
} |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* unset anyAttribute |
54
|
|
|
* |
55
|
|
|
* @param scalar $index |
56
|
|
|
* @return void |
57
|
|
|
*/ |
58
|
|
|
public function unsetAnyAttribute($index) |
59
|
|
|
{ |
60
|
|
|
unset($this->anyAttribute[$index]); |
61
|
|
|
} |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* Gets as anyAttribute |
65
|
|
|
* |
66
|
|
|
* @return mixed[] |
67
|
|
|
*/ |
68
|
|
|
public function getAnyAttribute() |
69
|
|
|
{ |
70
|
|
|
return $this->anyAttribute; |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* Sets a new anyAttribute |
75
|
|
|
* |
76
|
|
|
* @param mixed[] $anyAttribute |
77
|
|
|
* @return self |
78
|
|
|
*/ |
79
|
|
|
public function setAnyAttribute(array $anyAttribute) |
80
|
|
|
{ |
81
|
|
|
$this->anyAttribute = $anyAttribute; |
82
|
|
|
return $this; |
83
|
|
|
} |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* Adds as array |
87
|
|
|
* |
88
|
|
|
* @return self |
89
|
|
|
* @param mixed $array |
90
|
|
|
*/ |
91
|
|
|
public function addToAnyElement($array) |
92
|
|
|
{ |
93
|
|
|
$this->anyElement[] = $array; |
94
|
|
|
return $this; |
95
|
|
|
} |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* isset anyElement |
99
|
|
|
* |
100
|
|
|
* @param scalar $index |
101
|
|
|
* @return boolean |
102
|
|
|
*/ |
103
|
|
|
public function issetAnyElement($index) |
104
|
|
|
{ |
105
|
|
|
return isset($this->anyElement[$index]); |
106
|
|
|
} |
107
|
|
|
|
108
|
|
|
/** |
109
|
|
|
* unset anyElement |
110
|
|
|
* |
111
|
|
|
* @param scalar $index |
112
|
|
|
* @return void |
113
|
|
|
*/ |
114
|
|
|
public function unsetAnyElement($index) |
115
|
|
|
{ |
116
|
|
|
unset($this->anyElement[$index]); |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* Gets as anyElement |
121
|
|
|
* |
122
|
|
|
* @return mixed[] |
123
|
|
|
*/ |
124
|
|
|
public function getAnyElement() |
125
|
|
|
{ |
126
|
|
|
return $this->anyElement; |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
/** |
130
|
|
|
* Sets a new anyElement |
131
|
|
|
* |
132
|
|
|
* @param mixed[] $anyElement |
133
|
|
|
* @return self |
134
|
|
|
*/ |
135
|
|
|
public function setAnyElement(array $anyElement) |
136
|
|
|
{ |
137
|
|
|
$this->anyElement = $anyElement; |
138
|
|
|
return $this; |
139
|
|
|
} |
140
|
|
|
|
141
|
|
|
|
142
|
|
|
} |
143
|
|
|
|
144
|
|
|
|
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.