diff options
Diffstat (limited to 'matrix-specification/Enums/PushConditionKind.php')
| -rw-r--r-- | matrix-specification/Enums/PushConditionKind.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/matrix-specification/Enums/PushConditionKind.php b/matrix-specification/Enums/PushConditionKind.php new file mode 100644 index 0000000..fe61c16 --- /dev/null +++ b/matrix-specification/Enums/PushConditionKind.php @@ -0,0 +1,17 @@ +<?php + +namespace Matrix\Enums; + +enum PushConditionKind: string implements \JsonSerializable +{ + 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; + } +} |
