diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-22 17:19:39 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-22 17:19:39 +0500 |
| commit | 08e8563f94e8b46c08df4c231c838d32365d8f08 (patch) | |
| tree | e13577b2f2d9fbde64203b714516ffd6d78fc780 /src/emote.php | |
| parent | 34189e06a88ce4409a2c9652ca26f072c461233e (diff) | |
feat: show emote rating
Diffstat (limited to 'src/emote.php')
| -rw-r--r-- | src/emote.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/emote.php b/src/emote.php index 2fd30c0..1fa0221 100644 --- a/src/emote.php +++ b/src/emote.php @@ -6,9 +6,10 @@ class Emote public string $ext; public string|null $uploaded_by; public int $created_at; + public mixed $rating; public bool $is_in_user_set; - function __construct($id, $code, $ext, $created_at, $uploaded_by, $is_in_user_set) + function __construct($id, $code, $ext, $created_at, $uploaded_by, $is_in_user_set, $rating) { $this->id = $id; $this->code = $code; @@ -16,6 +17,7 @@ class Emote $this->created_at = $created_at; $this->uploaded_by = $uploaded_by; $this->is_in_user_set = $is_in_user_set; + $this->rating = $rating; } function get_id() @@ -47,4 +49,9 @@ class Emote { return $this->is_in_user_set; } + + function get_rating() + { + return $this->rating; + } } |
