summaryrefslogtreecommitdiff
path: root/matrix-specification/Enums/EventType.php
blob: da199dd19705c75e11bc60144bedc96e1031bac0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

namespace Matrix\Enums;

enum EventType: string implements \JsonSerializable
{
  case PRESENCE = "m.presence";
  case RECEIPT = "m.receipt";

  case ROOM_MEMBER = "m.room.member";
  case ROOM_MESSAGE = "m.room.message";
  case ROOM_NAME = "m.room.name";

  case TAG = "m.tag";
  case TYPING = "m.typing";

  public function jsonSerialize(): string
  {
    return $this->value;
  }
}