diff options
| author | Daniel Weipert <git@mail.dweipert.de> | 2025-09-25 13:38:24 +0200 |
|---|---|---|
| committer | Daniel Weipert <git@mail.dweipert.de> | 2025-09-25 13:38:24 +0200 |
| commit | b19a8f63ad727a3633885d3f2b81edf8181a53b9 (patch) | |
| tree | 6b5fd70224a125a16010a291e5fd0df834e9436f /matrix-specification/Enums/Role.php | |
| parent | b08047ba485f86038f33175162943c0a9878ab1a (diff) | |
matrix-specification split work in progress
Diffstat (limited to 'matrix-specification/Enums/Role.php')
| -rw-r--r-- | matrix-specification/Enums/Role.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/matrix-specification/Enums/Role.php b/matrix-specification/Enums/Role.php new file mode 100644 index 0000000..f2abf9b --- /dev/null +++ b/matrix-specification/Enums/Role.php @@ -0,0 +1,14 @@ +<?php + +namespace Matrix\Enums; + +enum Role: string implements \JsonSerializable +{ + case ADMIN = "m.role.admin"; + case SECURITY = "m.role.security"; + + public function jsonSerialize(): string + { + return $this->value; + } +} |
