summaryrefslogtreecommitdiff
path: root/matrix-specification/Enums/MembershipState.php
blob: 750f4c0c0c9beefc9069edce066faa4800b147a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

namespace Matrix\Enums;

enum MembershipState: string implements \JsonSerializable
{
  case BAN = "ban";
  case INVITE = "invite";
  case JOIN = "join";
  case KNOCK = "knock";
  case LEAVE = "leave";

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