isEncrypted = $isEncrypted; $this->isSigned = $isSigned; $this->isSignatureValid = $isSignatureValid; $this->decryptedMessage = $decryptedMessage; } public static function fromPlain(string $plainMessage): self { return new self($plainMessage, false, false, false); } public function getDecryptedMessage(): string { return $this->decryptedMessage; } public function isEncrypted(): bool { return $this->isEncrypted; } public function isSigned(): bool { return $this->isSigned; } public function isSignatureValid(): bool { return $this->isSignatureValid; } }