[ 'like' => '👍', 'anger' => '😡', 'love' => '❤', 'support' => '💯', 'celebrate' => '🎉', 'interesting' => '💡', 'sad' => '😥', 'funny' => '😂', ], 'contentReactions' => [ 'upvote' => "", 'downvote' => "", ], 'entityReactions' => [ 'favorite' => "", 'watch' => "", ], ]; public static string $favorite = 'favorite'; public static string $watch = 'watch'; public static string $downvote = 'downvote'; public static string $upvote = 'upvote'; public static string $funny = 'funny'; public static string $like = 'like'; public static string $anger = 'anger'; public static string $love = 'love'; public static string $support = 'support'; public static string $celebrate = 'celebrate'; public static string $interesting = 'interesting'; public static string $sad = 'sad'; public static function getReactions(): mixed { return self::dispatch_filter('available_reactions', self::$reactionTypes); } /** * @return false|mixed */ /** * @return false|mixed */ public static function getReactionsByType(string $type): mixed { $reactions = self::dispatch_filter('available_reactions', self::$reactionTypes); return $reactions[$type] ?? false; } }