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

SignatureType::setKeyInfo()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
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\XmlSign;
4
5
/**
6
 * Class representing SignatureType
7
 *
8
 *
9
 * XSD Type: SignatureType
10
 */
11
class SignatureType
12
{
13
14
    /**
15
     * @property string $id
16
     */
17
    private $id = null;
18
19
    /**
20
     * @property
21
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\SignedInfo
22
     * $signedInfo
23
     */
24
    private $signedInfo = null;
25
26
    /**
27
     * @property
28
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\SignatureValue
29
     * $signatureValue
30
     */
31
    private $signatureValue = null;
32
33
    /**
34
     * @property
35
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\KeyInfo
36
     * $keyInfo
37
     */
38
    private $keyInfo = null;
39
40
    /**
41
     * @property
42
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\ObjectXsd[]
43
     * $object
44
     */
45
    private $object = 'array()';
46
47
    /**
48
     * Gets as id
49
     *
50
     * @return string
51
     */
52
    public function getId()
53
    {
54
        return $this->id;
55
    }
56
57
    /**
58
     * Sets a new id
59
     *
60
     * @param string $id
61
     * @return self
62
     */
63
    public function setId($id)
64
    {
65
        $this->id = $id;
66
        return $this;
67
    }
68
69
    /**
70
     * Gets as signedInfo
71
     *
72
     * @return
73
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\SignedInfo
74
     */
75
    public function getSignedInfo()
76
    {
77
        return $this->signedInfo;
78
    }
79
80
    /**
81
     * Sets a new signedInfo
82
     *
83
     * @param
84
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\SignedInfo
85
     * $signedInfo
86
     * @return self
87
     */
88
    public function setSignedInfo(\GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\SignedInfo $signedInfo)
89
    {
90
        $this->signedInfo = $signedInfo;
91
        return $this;
92
    }
93
94
    /**
95
     * Gets as signatureValue
96
     *
97
     * @return
98
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\SignatureValue
99
     */
100
    public function getSignatureValue()
101
    {
102
        return $this->signatureValue;
103
    }
104
105
    /**
106
     * Sets a new signatureValue
107
     *
108
     * @param
109
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\SignatureValue
110
     * $signatureValue
111
     * @return self
112
     */
113
    public function setSignatureValue(\GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\SignatureValue $signatureValue)
114
    {
115
        $this->signatureValue = $signatureValue;
116
        return $this;
117
    }
118
119
    /**
120
     * Gets as keyInfo
121
     *
122
     * @return \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\KeyInfo
123
     */
124
    public function getKeyInfo()
125
    {
126
        return $this->keyInfo;
127
    }
128
129
    /**
130
     * Sets a new keyInfo
131
     *
132
     * @param \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\KeyInfo
133
     * $keyInfo
134
     * @return self
135
     */
136
    public function setKeyInfo(\GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\KeyInfo $keyInfo)
137
    {
138
        $this->keyInfo = $keyInfo;
139
        return $this;
140
    }
141
142
    /**
143
     * Adds as object
144
     *
145
     * @return self
146
     * @param
147
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\ObjectXsd
148
     * $object
149
     */
150
    public function addToObject(\GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\ObjectXsd $object)
151
    {
152
        $this->object[] = $object;
153
        return $this;
154
    }
155
156
    /**
157
     * isset object
158
     *
159
     * @param scalar $index
160
     * @return boolean
161
     */
162
    public function issetObject($index)
163
    {
164
        return isset($this->object[$index]);
165
    }
166
167
    /**
168
     * unset object
169
     *
170
     * @param scalar $index
171
     * @return void
172
     */
173
    public function unsetObject($index)
174
    {
175
        unset($this->object[$index]);
176
    }
177
178
    /**
179
     * Gets as object
180
     *
181
     * @return
182
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\ObjectXsd[]
183
     */
184
    public function getObject()
185
    {
186
        return $this->object;
187
    }
188
189
    /**
190
     * Sets a new object
191
     *
192
     * @param
193
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\ObjectXsd[]
194
     * $object
195
     * @return self
196
     */
197
    public function setObject(array $object)
198
    {
199
        $this->object = $object;
0 ignored issues
show
Documentation Bug introduced by
It seems like $object of type array is incompatible with the declared type string of property $object.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
200
        return $this;
201
    }
202
203
204
}
205
206