1 | <?php |
||
8 | class Emoji implements JsonSerializable, ArrayAccess |
||
9 | { |
||
10 | /** @var string */ |
||
11 | protected $name; |
||
12 | |||
13 | /** @var string */ |
||
14 | protected $code; |
||
15 | |||
16 | /** @var string */ |
||
17 | protected $cleanName; |
||
18 | |||
19 | /** @var string */ |
||
20 | protected $const; |
||
21 | |||
22 | /** @var string */ |
||
23 | protected $method; |
||
24 | |||
25 | public function __construct(string $name, string $code) |
||
30 | |||
31 | protected function setCode(string $code) |
||
35 | |||
36 | protected function setName(string $name) |
||
67 | |||
68 | public function getName(): string |
||
72 | |||
73 | public function getCode(): string |
||
77 | |||
78 | public function getCleanName(): string |
||
82 | |||
83 | public function getConst(): string |
||
87 | |||
88 | public function getMethod(): string |
||
92 | |||
93 | public function toArray(): array |
||
103 | |||
104 | public function jsonSerialize() |
||
108 | |||
109 | public function offsetExists($offset) |
||
113 | |||
114 | public function offsetGet($offset) |
||
118 | |||
119 | public function offsetSet($offset, $value) |
||
123 | |||
124 | public function offsetUnset($offset) |
||
128 | } |
||
129 |