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

UsernameTokenType   A

Complexity

Total Complexity 14

Size/Duplication

Total Lines 190
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 0

Importance

Changes 0
Metric Value
wmc 14
lcom 2
cbo 0
dl 0
loc 190
rs 10
c 0
b 0
f 0

14 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 5 1
A addToAnyAttribute() 0 5 1
A issetAnyAttribute() 0 4 1
A unsetAnyAttribute() 0 4 1
A getAnyAttribute() 0 4 1
A setAnyAttribute() 0 5 1
A getUsername() 0 4 1
A setUsername() 0 5 1
A addToAnyElement() 0 5 1
A issetAnyElement() 0 4 1
A unsetAnyElement() 0 4 1
A getAnyElement() 0 4 1
A setAnyElement() 0 5 1
1
<?php
2
3
namespace GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\Secext;
4
5
/**
6
 * Class representing UsernameTokenType
7
 *
8
 * This type represents a username token per Section 4.1
9
 * XSD Type: UsernameTokenType
10
 */
11
class UsernameTokenType
12
{
13
14
    /**
15
     * @property string $id
16
     */
17
    private $id = null;
18
19
    /**
20
     * @property mixed[] $anyAttribute
21
     */
22
    private $anyAttribute = array(
23
        
24
    );
25
26
    /**
27
     * @property
28
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\Secext\AttributedStringType
29
     * $username
30
     */
31
    private $username = null;
32
33
    /**
34
     * @property mixed[] $anyElement
35
     */
36
    private $anyElement = array(
37
        
38
    );
39
40
    /**
41
     * Gets as id
42
     *
43
     * @return string
44
     */
45
    public function getId()
46
    {
47
        return $this->id;
48
    }
49
50
    /**
51
     * Sets a new id
52
     *
53
     * @param string $id
54
     * @return self
55
     */
56
    public function setId($id)
57
    {
58
        $this->id = $id;
59
        return $this;
60
    }
61
62
    /**
63
     * Adds as array
64
     *
65
     * @return self
66
     * @param mixed $array
67
     */
68
    public function addToAnyAttribute($array)
69
    {
70
        $this->anyAttribute[] = $array;
71
        return $this;
72
    }
73
74
    /**
75
     * isset anyAttribute
76
     *
77
     * @param scalar $index
78
     * @return boolean
79
     */
80
    public function issetAnyAttribute($index)
81
    {
82
        return isset($this->anyAttribute[$index]);
83
    }
84
85
    /**
86
     * unset anyAttribute
87
     *
88
     * @param scalar $index
89
     * @return void
90
     */
91
    public function unsetAnyAttribute($index)
92
    {
93
        unset($this->anyAttribute[$index]);
94
    }
95
96
    /**
97
     * Gets as anyAttribute
98
     *
99
     * @return mixed[]
100
     */
101
    public function getAnyAttribute()
102
    {
103
        return $this->anyAttribute;
104
    }
105
106
    /**
107
     * Sets a new anyAttribute
108
     *
109
     * @param mixed[] $anyAttribute
110
     * @return self
111
     */
112
    public function setAnyAttribute(array $anyAttribute)
113
    {
114
        $this->anyAttribute = $anyAttribute;
115
        return $this;
116
    }
117
118
    /**
119
     * Gets as username
120
     *
121
     * @return
122
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\Secext\AttributedStringType
123
     */
124
    public function getUsername()
125
    {
126
        return $this->username;
127
    }
128
129
    /**
130
     * Sets a new username
131
     *
132
     * @param
133
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\Secext\AttributedStringType
134
     * $username
135
     * @return self
136
     */
137
    public function setUsername(\GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\Secext\AttributedStringType $username)
138
    {
139
        $this->username = $username;
140
        return $this;
141
    }
142
143
    /**
144
     * Adds as array
145
     *
146
     * @return self
147
     * @param mixed $array
148
     */
149
    public function addToAnyElement($array)
150
    {
151
        $this->anyElement[] = $array;
152
        return $this;
153
    }
154
155
    /**
156
     * isset anyElement
157
     *
158
     * @param scalar $index
159
     * @return boolean
160
     */
161
    public function issetAnyElement($index)
162
    {
163
        return isset($this->anyElement[$index]);
164
    }
165
166
    /**
167
     * unset anyElement
168
     *
169
     * @param scalar $index
170
     * @return void
171
     */
172
    public function unsetAnyElement($index)
173
    {
174
        unset($this->anyElement[$index]);
175
    }
176
177
    /**
178
     * Gets as anyElement
179
     *
180
     * @return mixed[]
181
     */
182
    public function getAnyElement()
183
    {
184
        return $this->anyElement;
185
    }
186
187
    /**
188
     * Sets a new anyElement
189
     *
190
     * @param mixed[] $anyElement
191
     * @return self
192
     */
193
    public function setAnyElement(array $anyElement)
194
    {
195
        $this->anyElement = $anyElement;
196
        return $this;
197
    }
198
199
200
}
201
202