| Total Complexity | 4 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class AttestedCredentialData |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $aaguid; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | private $credentialId; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var null|CBORObject |
||
| 32 | */ |
||
| 33 | private $credentialPublicKey; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * AttestedCredentialData constructor. |
||
| 37 | * |
||
| 38 | * @param string $aaguid |
||
| 39 | * @param string $credentialId |
||
| 40 | * @param null|CBORObject $credentialPublicKey |
||
| 41 | */ |
||
| 42 | public function __construct(string $aaguid, string $credentialId, ?CBORObject $credentialPublicKey) |
||
| 43 | { |
||
| 44 | $this->aaguid = $aaguid; |
||
| 45 | $this->credentialId = $credentialId; |
||
| 46 | $this->credentialPublicKey = $credentialPublicKey; |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | public function getAaguid(): string |
||
| 53 | { |
||
| 54 | return $this->aaguid; |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | public function getCredentialId(): string |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return null|CBORObject |
||
| 67 | */ |
||
| 68 | public function getCredentialPublicKey(): ?CBORObject |
||
| 73 |