(array $data)
| 12 | public ?bool $isEncrypted; |
| 13 | |
| 14 | public static function from(array $data): self |
| 15 | { |
| 16 | $verdict = new self(); |
| 17 | $verdict->sha256 = $data['sha256']; |
| 18 | $verdict->verdict = Verdict::from($data['verdict']); |
| 19 | $verdict->detection = $data['detection'] ?? null; |
| 20 | $verdict->fileType = $data['fileType'] ?? null; |
| 21 | $verdict->mimeType = $data['mimeType'] ?? null; |
| 22 | $verdict->isEncrypted = $data['isEncrypted'] ?? null; |
| 23 | return $verdict; |
| 24 | } |
| 25 | |
| 26 | public function __toString(): string |
| 27 | { |
no outgoing calls