Completed
Push — ws-security ( defbc5...87c9bd )
by Asmir
86:42 queued 56:41
created

SecurityTokenReferenceType::unsetUsage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\Secext;
4
5
/**
6
 * Class representing SecurityTokenReferenceType
7
 *
8
 * This type is used reference a security token.
9
 * XSD Type: SecurityTokenReferenceType
10
 */
11
class SecurityTokenReferenceType
12
{
13
14
    /**
15
     * @property string $id
16
     */
17
    private $id = null;
18
19
    /**
20
     * @property string[] $usage
21
     */
22
    private $usage = null;
23
24
    /**
25
     * @property mixed[] $anyAttribute
26
     */
27
    private $anyAttribute = array(
28
        
29
    );
30
31
    /**
32
     * @property mixed[] $anyElement
33
     */
34
    private $anyElement = array(
35
        
36
    );
37
38
    /**
39
     * Gets as id
40
     *
41
     * @return string
42
     */
43
    public function getId()
44
    {
45
        return $this->id;
46
    }
47
48
    /**
49
     * Sets a new id
50
     *
51
     * @param string $id
52
     * @return self
53
     */
54
    public function setId($id)
55
    {
56
        $this->id = $id;
57
        return $this;
58
    }
59
60
    /**
61
     * Adds as usage
62
     *
63
     * @return self
64
     * @param string $usage
65
     */
66
    public function addToUsage($usage)
67
    {
68
        $this->usage[] = $usage;
69
        return $this;
70
    }
71
72
    /**
73
     * isset usage
74
     *
75
     * @param scalar $index
76
     * @return boolean
77
     */
78
    public function issetUsage($index)
79
    {
80
        return isset($this->usage[$index]);
81
    }
82
83
    /**
84
     * unset usage
85
     *
86
     * @param scalar $index
87
     * @return void
88
     */
89
    public function unsetUsage($index)
90
    {
91
        unset($this->usage[$index]);
92
    }
93
94
    /**
95
     * Gets as usage
96
     *
97
     * @return string[]
98
     */
99
    public function getUsage()
100
    {
101
        return $this->usage;
102
    }
103
104
    /**
105
     * Sets a new usage
106
     *
107
     * @param string[] $usage
108
     * @return self
109
     */
110
    public function setUsage(array $usage)
111
    {
112
        $this->usage = $usage;
113
        return $this;
114
    }
115
116
    /**
117
     * Adds as array
118
     *
119
     * @return self
120
     * @param mixed $array
121
     */
122
    public function addToAnyAttribute($array)
123
    {
124
        $this->anyAttribute[] = $array;
125
        return $this;
126
    }
127
128
    /**
129
     * isset anyAttribute
130
     *
131
     * @param scalar $index
132
     * @return boolean
133
     */
134
    public function issetAnyAttribute($index)
135
    {
136
        return isset($this->anyAttribute[$index]);
137
    }
138
139
    /**
140
     * unset anyAttribute
141
     *
142
     * @param scalar $index
143
     * @return void
144
     */
145
    public function unsetAnyAttribute($index)
146
    {
147
        unset($this->anyAttribute[$index]);
148
    }
149
150
    /**
151
     * Gets as anyAttribute
152
     *
153
     * @return mixed[]
154
     */
155
    public function getAnyAttribute()
156
    {
157
        return $this->anyAttribute;
158
    }
159
160
    /**
161
     * Sets a new anyAttribute
162
     *
163
     * @param mixed[] $anyAttribute
164
     * @return self
165
     */
166
    public function setAnyAttribute(array $anyAttribute)
167
    {
168
        $this->anyAttribute = $anyAttribute;
169
        return $this;
170
    }
171
172
    /**
173
     * Adds as array
174
     *
175
     * @return self
176
     * @param mixed $array
177
     */
178
    public function addToAnyElement($array)
179
    {
180
        $this->anyElement[] = $array;
181
        return $this;
182
    }
183
184
    /**
185
     * isset anyElement
186
     *
187
     * @param scalar $index
188
     * @return boolean
189
     */
190
    public function issetAnyElement($index)
191
    {
192
        return isset($this->anyElement[$index]);
193
    }
194
195
    /**
196
     * unset anyElement
197
     *
198
     * @param scalar $index
199
     * @return void
200
     */
201
    public function unsetAnyElement($index)
202
    {
203
        unset($this->anyElement[$index]);
204
    }
205
206
    /**
207
     * Gets as anyElement
208
     *
209
     * @return mixed[]
210
     */
211
    public function getAnyElement()
212
    {
213
        return $this->anyElement;
214
    }
215
216
    /**
217
     * Sets a new anyElement
218
     *
219
     * @param mixed[] $anyElement
220
     * @return self
221
     */
222
    public function setAnyElement(array $anyElement)
223
    {
224
        $this->anyElement = $anyElement;
225
        return $this;
226
    }
227
228
229
}
230
231