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

EmbeddedType::addToAnyElement()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 5
Ratio 100 %

Importance

Changes 0
Metric Value
dl 5
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\Secext;
4
5
/**
6
 * Class representing EmbeddedType
7
 *
8
 * This type represents a reference to an embedded security token.
9
 * XSD Type: EmbeddedType
10
 */
11 View Code Duplication
class EmbeddedType
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

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.

Loading history...
12
{
13
14
    /**
15
     * @property string $valueType
16
     */
17
    private $valueType = null;
18
19
    /**
20
     * @property mixed[] $anyAttribute
21
     */
22
    private $anyAttribute = array(
23
        
24
    );
25
26
    /**
27
     * @property mixed[] $anyElement
28
     */
29
    private $anyElement = array(
30
        
31
    );
32
33
    /**
34
     * Gets as valueType
35
     *
36
     * @return string
37
     */
38
    public function getValueType()
39
    {
40
        return $this->valueType;
41
    }
42
43
    /**
44
     * Sets a new valueType
45
     *
46
     * @param string $valueType
47
     * @return self
48
     */
49
    public function setValueType($valueType)
50
    {
51
        $this->valueType = $valueType;
52
        return $this;
53
    }
54
55
    /**
56
     * Adds as array
57
     *
58
     * @return self
59
     * @param mixed $array
60
     */
61
    public function addToAnyAttribute($array)
62
    {
63
        $this->anyAttribute[] = $array;
64
        return $this;
65
    }
66
67
    /**
68
     * isset anyAttribute
69
     *
70
     * @param scalar $index
71
     * @return boolean
72
     */
73
    public function issetAnyAttribute($index)
74
    {
75
        return isset($this->anyAttribute[$index]);
76
    }
77
78
    /**
79
     * unset anyAttribute
80
     *
81
     * @param scalar $index
82
     * @return void
83
     */
84
    public function unsetAnyAttribute($index)
85
    {
86
        unset($this->anyAttribute[$index]);
87
    }
88
89
    /**
90
     * Gets as anyAttribute
91
     *
92
     * @return mixed[]
93
     */
94
    public function getAnyAttribute()
95
    {
96
        return $this->anyAttribute;
97
    }
98
99
    /**
100
     * Sets a new anyAttribute
101
     *
102
     * @param mixed[] $anyAttribute
103
     * @return self
104
     */
105
    public function setAnyAttribute(array $anyAttribute)
106
    {
107
        $this->anyAttribute = $anyAttribute;
108
        return $this;
109
    }
110
111
    /**
112
     * Adds as array
113
     *
114
     * @return self
115
     * @param mixed $array
116
     */
117
    public function addToAnyElement($array)
118
    {
119
        $this->anyElement[] = $array;
120
        return $this;
121
    }
122
123
    /**
124
     * isset anyElement
125
     *
126
     * @param scalar $index
127
     * @return boolean
128
     */
129
    public function issetAnyElement($index)
130
    {
131
        return isset($this->anyElement[$index]);
132
    }
133
134
    /**
135
     * unset anyElement
136
     *
137
     * @param scalar $index
138
     * @return void
139
     */
140
    public function unsetAnyElement($index)
141
    {
142
        unset($this->anyElement[$index]);
143
    }
144
145
    /**
146
     * Gets as anyElement
147
     *
148
     * @return mixed[]
149
     */
150
    public function getAnyElement()
151
    {
152
        return $this->anyElement;
153
    }
154
155
    /**
156
     * Sets a new anyElement
157
     *
158
     * @param mixed[] $anyElement
159
     * @return self
160
     */
161
    public function setAnyElement(array $anyElement)
162
    {
163
        $this->anyElement = $anyElement;
164
        return $this;
165
    }
166
167
168
}
169
170