3 namespace Friendica\Object\Api\Mastodon;
5 use Friendica\BaseEntity;
10 * @see https://docs.joinmastodon.org/entities/emoji/
12 class Emoji extends BaseEntity
17 /** @var string (URL)*/
18 protected $static_url;
19 /** @var string (URL)*/
25 protected $visible_in_picker = true;
27 // Optional attributes
32 //protected $category;
34 public function __construct(string $shortcode, string $url)
36 $this->shortcode = $shortcode;
38 $this->static_url = $url;
42 * @param Emoji $prototype
43 * @param string $shortcode
47 public static function createFromPrototype(Emoji $prototype, string $shortcode, string $url)
49 $emoji = clone $prototype;
50 $emoji->shortcode = $shortcode;
52 $emoji->static_url = $url;