Code Duplication    Length = 156-158 lines in 2 locations

src/WssWsSecurity/Secext/EmbeddedType.php 1 location

@@ 11-168 (lines=158) @@
8
 * This type represents a reference to an embedded security token.
9
 * XSD Type: EmbeddedType
10
 */
11
class EmbeddedType
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

src/WssWsSecurity/XmlSign/TransformType.php 1 location

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