diff options
| author | Daniel Weipert <git@mail.dweipert.de> | 2026-04-10 22:38:59 +0200 |
|---|---|---|
| committer | Daniel Weipert <git@mail.dweipert.de> | 2026-04-10 22:38:59 +0200 |
| commit | 875b9ece501de5937993c41a83c44f8ea59897d0 (patch) | |
| tree | 04579bcb80c9fdb43502d178b3ee145a818afe28 /matrix-specification/Data/Ruleset.php | |
| parent | 74a524ded12c6527745957ac219e1ca34828aa6c (diff) | |
register and login to Cinny client
Diffstat (limited to 'matrix-specification/Data/Ruleset.php')
| -rw-r--r-- | matrix-specification/Data/Ruleset.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/matrix-specification/Data/Ruleset.php b/matrix-specification/Data/Ruleset.php new file mode 100644 index 0000000..af75579 --- /dev/null +++ b/matrix-specification/Data/Ruleset.php @@ -0,0 +1,33 @@ +<?php + +namespace Matrix\Data; + +class Ruleset implements \JsonSerializable +{ + /** + * @param PushRule[] $content + * @param PushRule[] $override + * @param PushRule[] $room + * @param PushRule[] $sender + * @param PushRule[] $underride + */ + public function __construct( + private array $content, + private array $override, + private array $room, + private array $sender, + private array $underride, + ) + {} + + public function jsonSerialize(): array + { + return [ + "content" => $this->content, + "override" => $this->override, + "room" => $this->room, + "sender" => $this->sender, + "underride" => $this->underride, + ]; + } +} |
