Code Duplication    Length = 122-122 lines in 2 locations

src/WssWsSecurity/XmlSign/PGPDataType.php 1 location

@@ 11-132 (lines=122) @@
8
 *
9
 * XSD Type: PGPDataType
10
 */
11
class PGPDataType
12
{
13
14
    /**
15
     * @property mixed $pGPKeyID
16
     */
17
    private $pGPKeyID = null;
18
19
    /**
20
     * @property mixed $pGPKeyPacket
21
     */
22
    private $pGPKeyPacket = null;
23
24
    /**
25
     * @property mixed[] $anyElement
26
     */
27
    private $anyElement = array(
28
        
29
    );
30
31
    /**
32
     * Gets as pGPKeyID
33
     *
34
     * @return mixed
35
     */
36
    public function getPGPKeyID()
37
    {
38
        return $this->pGPKeyID;
39
    }
40
41
    /**
42
     * Sets a new pGPKeyID
43
     *
44
     * @param mixed $pGPKeyID
45
     * @return self
46
     */
47
    public function setPGPKeyID($pGPKeyID)
48
    {
49
        $this->pGPKeyID = $pGPKeyID;
50
        return $this;
51
    }
52
53
    /**
54
     * Gets as pGPKeyPacket
55
     *
56
     * @return mixed
57
     */
58
    public function getPGPKeyPacket()
59
    {
60
        return $this->pGPKeyPacket;
61
    }
62
63
    /**
64
     * Sets a new pGPKeyPacket
65
     *
66
     * @param mixed $pGPKeyPacket
67
     * @return self
68
     */
69
    public function setPGPKeyPacket($pGPKeyPacket)
70
    {
71
        $this->pGPKeyPacket = $pGPKeyPacket;
72
        return $this;
73
    }
74
75
    /**
76
     * Adds as array
77
     *
78
     * @return self
79
     * @param mixed $array
80
     */
81
    public function addToAnyElement($array)
82
    {
83
        $this->anyElement[] = $array;
84
        return $this;
85
    }
86
87
    /**
88
     * isset anyElement
89
     *
90
     * @param scalar $index
91
     * @return boolean
92
     */
93
    public function issetAnyElement($index)
94
    {
95
        return isset($this->anyElement[$index]);
96
    }
97
98
    /**
99
     * unset anyElement
100
     *
101
     * @param scalar $index
102
     * @return void
103
     */
104
    public function unsetAnyElement($index)
105
    {
106
        unset($this->anyElement[$index]);
107
    }
108
109
    /**
110
     * Gets as anyElement
111
     *
112
     * @return mixed[]
113
     */
114
    public function getAnyElement()
115
    {
116
        return $this->anyElement;
117
    }
118
119
    /**
120
     * Sets a new anyElement
121
     *
122
     * @param mixed[] $anyElement
123
     * @return self
124
     */
125
    public function setAnyElement(array $anyElement)
126
    {
127
        $this->anyElement = $anyElement;
128
        return $this;
129
    }
130
131
132
}
133
134

src/WssWsSecurity/XmlSign/SignatureMethodType.php 1 location

@@ 11-132 (lines=122) @@
8
 *
9
 * XSD Type: SignatureMethodType
10
 */
11
class SignatureMethodType
12
{
13
14
    /**
15
     * @property string $algorithm
16
     */
17
    private $algorithm = null;
18
19
    /**
20
     * @property integer $hMACOutputLength
21
     */
22
    private $hMACOutputLength = null;
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
     * Gets as hMACOutputLength
55
     *
56
     * @return integer
57
     */
58
    public function getHMACOutputLength()
59
    {
60
        return $this->hMACOutputLength;
61
    }
62
63
    /**
64
     * Sets a new hMACOutputLength
65
     *
66
     * @param integer $hMACOutputLength
67
     * @return self
68
     */
69
    public function setHMACOutputLength($hMACOutputLength)
70
    {
71
        $this->hMACOutputLength = $hMACOutputLength;
72
        return $this;
73
    }
74
75
    /**
76
     * Adds as array
77
     *
78
     * @return self
79
     * @param mixed $array
80
     */
81
    public function addToAnyElement($array)
82
    {
83
        $this->anyElement[] = $array;
84
        return $this;
85
    }
86
87
    /**
88
     * isset anyElement
89
     *
90
     * @param scalar $index
91
     * @return boolean
92
     */
93
    public function issetAnyElement($index)
94
    {
95
        return isset($this->anyElement[$index]);
96
    }
97
98
    /**
99
     * unset anyElement
100
     *
101
     * @param scalar $index
102
     * @return void
103
     */
104
    public function unsetAnyElement($index)
105
    {
106
        unset($this->anyElement[$index]);
107
    }
108
109
    /**
110
     * Gets as anyElement
111
     *
112
     * @return mixed[]
113
     */
114
    public function getAnyElement()
115
    {
116
        return $this->anyElement;
117
    }
118
119
    /**
120
     * Sets a new anyElement
121
     *
122
     * @param mixed[] $anyElement
123
     * @return self
124
     */
125
    public function setAnyElement(array $anyElement)
126
    {
127
        $this->anyElement = $anyElement;
128
        return $this;
129
    }
130
131
132
}
133
134