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

SignedInfoType   A

Complexity

Total Complexity 11

Size/Duplication

Total Lines 164
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 11
lcom 1
cbo 0
dl 0
loc 164
rs 10
c 0
b 0
f 0

11 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 5 1
A getCanonicalizationMethod() 0 4 1
A setCanonicalizationMethod() 0 5 1
A getSignatureMethod() 0 4 1
A setSignatureMethod() 0 5 1
A addToReference() 0 5 1
A issetReference() 0 4 1
A unsetReference() 0 4 1
A getReference() 0 4 1
A setReference() 0 5 1
1
<?php
2
3
namespace GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign;
4
5
/**
6
 * Class representing SignedInfoType
7
 *
8
 *
9
 * XSD Type: SignedInfoType
10
 */
11
class SignedInfoType
12
{
13
14
    /**
15
     * @property string $id
16
     */
17
    private $id = null;
18
19
    /**
20
     * @property
21
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\CanonicalizationMethod
22
     * $canonicalizationMethod
23
     */
24
    private $canonicalizationMethod = null;
25
26
    /**
27
     * @property
28
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\SignatureMethod
29
     * $signatureMethod
30
     */
31
    private $signatureMethod = null;
32
33
    /**
34
     * @property
35
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\Reference[]
36
     * $reference
37
     */
38
    private $reference = 'array()';
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
     * Gets as canonicalizationMethod
64
     *
65
     * @return
66
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\CanonicalizationMethod
67
     */
68
    public function getCanonicalizationMethod()
69
    {
70
        return $this->canonicalizationMethod;
71
    }
72
73
    /**
74
     * Sets a new canonicalizationMethod
75
     *
76
     * @param
77
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\CanonicalizationMethod
78
     * $canonicalizationMethod
79
     * @return self
80
     */
81
    public function setCanonicalizationMethod(\GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\CanonicalizationMethod $canonicalizationMethod)
82
    {
83
        $this->canonicalizationMethod = $canonicalizationMethod;
84
        return $this;
85
    }
86
87
    /**
88
     * Gets as signatureMethod
89
     *
90
     * @return
91
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\SignatureMethod
92
     */
93
    public function getSignatureMethod()
94
    {
95
        return $this->signatureMethod;
96
    }
97
98
    /**
99
     * Sets a new signatureMethod
100
     *
101
     * @param
102
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\SignatureMethod
103
     * $signatureMethod
104
     * @return self
105
     */
106
    public function setSignatureMethod(\GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\SignatureMethod $signatureMethod)
107
    {
108
        $this->signatureMethod = $signatureMethod;
109
        return $this;
110
    }
111
112
    /**
113
     * Adds as reference
114
     *
115
     * @return self
116
     * @param
117
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\Reference
118
     * $reference
119
     */
120
    public function addToReference(\GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\Reference $reference)
121
    {
122
        $this->reference[] = $reference;
123
        return $this;
124
    }
125
126
    /**
127
     * isset reference
128
     *
129
     * @param scalar $index
130
     * @return boolean
131
     */
132
    public function issetReference($index)
133
    {
134
        return isset($this->reference[$index]);
135
    }
136
137
    /**
138
     * unset reference
139
     *
140
     * @param scalar $index
141
     * @return void
142
     */
143
    public function unsetReference($index)
144
    {
145
        unset($this->reference[$index]);
146
    }
147
148
    /**
149
     * Gets as reference
150
     *
151
     * @return
152
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\Reference[]
153
     */
154
    public function getReference()
155
    {
156
        return $this->reference;
157
    }
158
159
    /**
160
     * Sets a new reference
161
     *
162
     * @param
163
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\Reference[]
164
     * $reference
165
     * @return self
166
     */
167
    public function setReference(array $reference)
168
    {
169
        $this->reference = $reference;
0 ignored issues
show
Documentation Bug introduced by
It seems like $reference of type array is incompatible with the declared type string of property $reference.

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...
170
        return $this;
171
    }
172
173
174
}
175
176