1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-10 17:08:16 +01:00

Make class properties readonly

This commit is contained in:
Mahdi 2024-12-02 20:39:14 +03:30
parent 15e21eeba8
commit cb950f139e

View File

@ -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);
}