summaryrefslogtreecommitdiff
path: root/src/emote.php
blob: d00886a5f8b60b51a30adc0dc51b5f53754bcf03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
class Emote
{
    public string $id;
    public string $code;
    public string $ext;
    public string|null $uploaded_by;
    public int $created_at;

    function __construct($id, $code, $ext, $created_at, $uploaded_by)
    {
        $this->id = $id;
        $this->code = $code;
        $this->ext = $ext;
        $this->created_at = $created_at;
        $this->uploaded_by = $uploaded_by;
    }

    function get_id()
    {
        return $this->id;
    }

    function get_code()
    {
        return $this->code;
    }

    function get_ext()
    {
        return $this->ext;
    }

    function get_created_at()
    {
        return $this->created_at;
    }

    function get_uploaded_by()
    {
        return $this->uploaded_by;
    }
}