summaryrefslogtreecommitdiff
path: root/matrix-specification/Data/DeviceLists.php
diff options
context:
space:
mode:
Diffstat (limited to 'matrix-specification/Data/DeviceLists.php')
-rw-r--r--matrix-specification/Data/DeviceLists.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/matrix-specification/Data/DeviceLists.php b/matrix-specification/Data/DeviceLists.php
new file mode 100644
index 0000000..33d9459
--- /dev/null
+++ b/matrix-specification/Data/DeviceLists.php
@@ -0,0 +1,24 @@
+<?php
+
+namespace Matrix\Data;
+
+class DeviceLists implements \JsonSerializable
+{
+ /**
+ * @param string[] $changed
+ * @param string[] $left
+ */
+ public function __construct(
+ private array $changed = [],
+ private array $left = [],
+ )
+ {}
+
+ public function jsonSerialize(): array
+ {
+ return [
+ "changed" => $this->events,
+ "left" => $this->events,
+ ];
+ }
+}