sign = $sign; $this->encrypt = $encrypt; } /** * @return bool */ public function hasSign(): bool { return $this->sign; } /** * @param bool $sign */ public function setSign(bool $sign): void { $this->sign = $sign; } /** * @return bool */ public function hasEncrypt(): bool { return $this->encrypt; } /** * @param bool $encrypt */ public function setEncrypt(bool $encrypt): void { $this->encrypt = $encrypt; } #[\Override] #[ReturnTypeWillChange] public function jsonSerialize() { return [ 'sign' => $this->sign, 'encrypt' => $this->encrypt, ]; } }