| Total Complexity | 5 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Nfc |
||
| 8 | { |
||
| 9 | private string $encryptionPublicKey; |
||
| 10 | private string $message; |
||
| 11 | private bool $requiresAuthentication = false; |
||
| 12 | |||
| 13 | public function __construct(string $encryptionPublicKey, string $message) |
||
| 14 | { |
||
| 15 | $this->encryptionPublicKey = $encryptionPublicKey; |
||
| 16 | $this->message = $message; |
||
| 17 | } |
||
| 18 | |||
| 19 | public function requireAuthentication(): void |
||
| 22 | } |
||
| 23 | |||
| 24 | public function requiresAuthentication(): bool |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return array<string, string|true> |
||
| 31 | */ |
||
| 32 | public function toArray(): array |
||
| 46 |