summaryrefslogtreecommitdiff
path: root/src/emote.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/emote.php')
-rw-r--r--src/emote.php9
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;
+ }
}