| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | public function jsonSerialize() |
||
| 52 | { |
||
| 53 | $result = [ |
||
| 54 | 'aaguid' => base64_encode($this->aaguid), |
||
| 55 | 'credentialId' => base64_encode($this->credentialId), |
||
| 56 | ]; |
||
| 57 | if (null !== $this->credentialPublicKey) { |
||
| 58 | $result['credentialPublicKey'] = base64_encode((string) $this->credentialPublicKey); |
||
| 59 | } |
||
| 60 | |||
| 61 | return $result; |
||
| 62 | } |
||
| 64 |