1 | <?php |
||
17 | abstract class AbstractCredential implements CredentialInterface |
||
18 | { |
||
19 | /** @var string */ |
||
20 | private $entityId; |
||
21 | |||
22 | /** @var string */ |
||
23 | private $usageType; |
||
24 | |||
25 | /** @var string[] */ |
||
26 | private $keyNames = array(); |
||
27 | |||
28 | /** @var XMLSecurityKey|null */ |
||
29 | private $publicKey; |
||
30 | |||
31 | /** @var XMLSecurityKey|null */ |
||
32 | private $privateKey; |
||
33 | |||
34 | /** @var string|null */ |
||
35 | private $secretKey; |
||
36 | |||
37 | /** @var CredentialContextSet */ |
||
38 | private $credentialContext; |
||
39 | |||
40 | 27 | public function __construct() |
|
44 | |||
45 | /** |
||
46 | * @return string |
||
47 | */ |
||
48 | 14 | public function getEntityId() |
|
52 | |||
53 | /** |
||
54 | * One of UsageType constants. |
||
55 | * |
||
56 | * @return string|null |
||
57 | */ |
||
58 | 12 | public function getUsageType() |
|
62 | |||
63 | /** |
||
64 | * @return string[] |
||
65 | */ |
||
66 | 3 | public function getKeyNames() |
|
70 | |||
71 | /** |
||
72 | * @return XMLSecurityKey|null |
||
73 | */ |
||
74 | 10 | public function getPublicKey() |
|
78 | |||
79 | /** |
||
80 | * @return XMLSecurityKey|null |
||
81 | */ |
||
82 | 15 | public function getPrivateKey() |
|
86 | |||
87 | /** |
||
88 | * @return string|null |
||
89 | */ |
||
90 | 1 | public function getSecretKey() |
|
94 | |||
95 | /** |
||
96 | * @return CredentialContextSet |
||
97 | */ |
||
98 | 11 | public function getCredentialContext() |
|
102 | |||
103 | /** |
||
104 | * @param CredentialContextSet $credentialContext |
||
105 | * |
||
106 | * @return AbstractCredential |
||
107 | */ |
||
108 | 8 | public function setCredentialContext(CredentialContextSet $credentialContext) |
|
114 | |||
115 | /** |
||
116 | * @param string $entityId |
||
117 | * |
||
118 | * @return AbstractCredential |
||
119 | */ |
||
120 | 20 | public function setEntityId($entityId) |
|
126 | |||
127 | /** |
||
128 | * @param \string[] $keyNames |
||
129 | * |
||
130 | * @return AbstractCredential |
||
131 | */ |
||
132 | 22 | public function setKeyNames(array $keyNames) |
|
138 | |||
139 | /** |
||
140 | * @param string $keyName |
||
141 | * |
||
142 | * @return AbstractCredential |
||
143 | */ |
||
144 | 9 | public function addKeyName($keyName) |
|
153 | |||
154 | /** |
||
155 | * @param null|XMLSecurityKey $privateKey |
||
156 | * |
||
157 | * @return AbstractCredential |
||
158 | */ |
||
159 | 21 | public function setPrivateKey(XMLSecurityKey $privateKey) |
|
165 | |||
166 | /** |
||
167 | * @param null|XMLSecurityKey $publicKey |
||
168 | * |
||
169 | * @return AbstractCredential |
||
170 | */ |
||
171 | 22 | public function setPublicKey(XMLSecurityKey $publicKey) |
|
177 | |||
178 | /** |
||
179 | * @param null|string $secretKey |
||
180 | * |
||
181 | * @return AbstractCredential |
||
182 | */ |
||
183 | 1 | public function setSecretKey($secretKey) |
|
189 | |||
190 | /** |
||
191 | * @param string $usageType |
||
192 | * |
||
193 | * @return AbstractCredential |
||
194 | */ |
||
195 | 11 | public function setUsageType($usageType) |
|
201 | } |
||
202 |
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..