1 | <?php |
||
30 | final class RegistrationAuthorityCredentials implements \JsonSerializable |
||
31 | { |
||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | private $identityId; |
||
36 | |||
37 | /** |
||
38 | * @var Institution |
||
39 | */ |
||
40 | private $institution; |
||
41 | |||
42 | /** |
||
43 | * @var CommonName |
||
44 | */ |
||
45 | private $commonName; |
||
46 | |||
47 | /** |
||
48 | * @var Location|null |
||
49 | */ |
||
50 | private $location; |
||
51 | |||
52 | /** |
||
53 | * @var ContactInformation|null |
||
54 | */ |
||
55 | private $contactInformation; |
||
56 | |||
57 | /** |
||
58 | * @var bool |
||
59 | */ |
||
60 | private $isRa; |
||
61 | |||
62 | /** |
||
63 | * @var bool |
||
64 | */ |
||
65 | private $isRaa; |
||
66 | |||
67 | /** |
||
68 | * @var bool |
||
69 | */ |
||
70 | private $isSraa; |
||
71 | |||
72 | /** |
||
73 | * @param string $identityId |
||
74 | * @param bool $isRa |
||
75 | * @param bool $isRaa |
||
76 | * @param bool $isSraa |
||
77 | */ |
||
78 | private function __construct( |
||
89 | |||
90 | /** |
||
91 | * @param Sraa $sraa |
||
92 | * @param Identity $identity |
||
93 | * @return RegistrationAuthorityCredentials |
||
94 | */ |
||
95 | public static function fromSraa(Sraa $sraa, Identity $identity) |
||
104 | |||
105 | /** |
||
106 | * @param RaListing[] $raListings |
||
107 | * @return RegistrationAuthorityCredentials |
||
108 | */ |
||
109 | public static function fromRaListings(array $raListings) |
||
139 | |||
140 | |||
141 | /** |
||
142 | * @param RaListing $raListing |
||
143 | * @return RegistrationAuthorityCredentials |
||
144 | */ |
||
145 | public static function fromRaListing(RaListing $raListing) |
||
161 | |||
162 | /** |
||
163 | * @param string $nameId |
||
164 | * @param string $identityNameId |
||
165 | * @return void |
||
166 | */ |
||
167 | private static function assertEquals($nameId, $identityNameId) |
||
171 | |||
172 | /** |
||
173 | * @return RegistrationAuthorityCredentials |
||
174 | */ |
||
175 | public function grantSraa() |
||
182 | |||
183 | /** |
||
184 | * @param RegistrationAuthorityCredentials $other |
||
185 | * @return bool |
||
186 | */ |
||
187 | public function equals(RegistrationAuthorityCredentials $other) |
||
191 | |||
192 | public function jsonSerialize() |
||
207 | |||
208 | /** |
||
209 | * @return string |
||
210 | */ |
||
211 | public function getIdentityId() |
||
215 | |||
216 | /** |
||
217 | * @return Institution |
||
218 | */ |
||
219 | public function getInstitution() |
||
223 | |||
224 | /** |
||
225 | * @return CommonName |
||
226 | */ |
||
227 | public function getCommonName() |
||
231 | |||
232 | /** |
||
233 | * @return string |
||
234 | */ |
||
235 | public function getLocation() |
||
239 | |||
240 | /** |
||
241 | * @return string |
||
242 | */ |
||
243 | public function getContactInformation() |
||
247 | |||
248 | /** |
||
249 | * @return boolean |
||
250 | */ |
||
251 | public function isRa() |
||
255 | |||
256 | /** |
||
257 | * @return boolean |
||
258 | */ |
||
259 | public function isRaa() |
||
263 | |||
264 | /** |
||
265 | * @return boolean |
||
266 | */ |
||
267 | public function isSraa() |
||
271 | } |
||
272 |
Late static binding only has effect in subclasses. A
final
class cannot be extended anymore so late static binding cannot occurr. Consider replacingstatic::
withself::
.To learn more about late static binding, please refer to the PHP core documentation.