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

namespace Matrix\Enums;

enum PushConditionKind: string implements \JsonSerializable
{
  case CONTAINS_DISPLAY_NAME = "contains_display_name";
  case EVENT_MATCH = "event_match";
  case EVENT_PROPERTY_CONTAINS = "event_property_contains";
  case EVENT_PROPERTY_IS = "event_property_is";
  case ROOM_MEMBER_COUNT = "room_member_count";
  case SENDER_NOTIFICATION_PERMISSION = "sender_notification_permission";

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