From cb950f139e4f919c3a6cd9b726e34d3ee01aa920 Mon Sep 17 00:00:00 2001 From: Mahdi Date: Mon, 2 Dec 2024 20:39:14 +0330 Subject: [PATCH] Make class properties readonly --- src/EventHandler/Message/Service/DialogGiftStars.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/EventHandler/Message/Service/DialogGiftStars.php b/src/EventHandler/Message/Service/DialogGiftStars.php index fee9aa0bd..3db4fe3d5 100644 --- a/src/EventHandler/Message/Service/DialogGiftStars.php +++ b/src/EventHandler/Message/Service/DialogGiftStars.php @@ -28,17 +28,17 @@ class DialogGiftStars extends ServiceMessage array $rawMessage, array $info, /** Three-letter ISO 4217 currency code */ - public string $currency, + public readonly string $currency, /** Price of the gift in the smallest units of the currency (integer, not float/double). */ - public int $amount, + public readonly int $amount, /** Amount of gifted stars */ - public int $stars, + public readonly int $stars, /** If the gift was bought using a cryptocurrency, the cryptocurrency name. */ - public ?string $cryptoCurrency, + public readonly ?string $cryptoCurrency, /** If the gift was bought using a cryptocurrency, price of the gift in the smallest units of a cryptocurrency. */ - public ?int $cryptoAmount, + public readonly ?int $cryptoAmount, /** Identifier of the transaction, only visible to the receiver of the gift. */ - public string $transactionId, + public readonly string $transactionId, ) { parent::__construct($API, $rawMessage, $info); }