diff options
| author | Daniel Weipert <git@mail.dweipert.de> | 2026-03-05 14:57:28 +0100 |
|---|---|---|
| committer | Daniel Weipert <git@mail.dweipert.de> | 2026-03-05 14:57:28 +0100 |
| commit | bd11271621bd3759cfd194ed0119c0dc28155fd0 (patch) | |
| tree | 319b4790d4e2b05513abf023732ed6fb0717f603 /matrix-specification/Events/UnsignedData.php | |
| parent | 2386148b8f048ba40d9f26cc97898bdcdc778ea2 (diff) | |
Diffstat (limited to 'matrix-specification/Events/UnsignedData.php')
| -rw-r--r-- | matrix-specification/Events/UnsignedData.php | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/matrix-specification/Events/UnsignedData.php b/matrix-specification/Events/UnsignedData.php deleted file mode 100644 index 3c5cd46..0000000 --- a/matrix-specification/Events/UnsignedData.php +++ /dev/null @@ -1,31 +0,0 @@ -<?php - -namespace Matrix\Events; - -use Matrix\Enums\MembershipState; - -/** - * @see https://spec.matrix.org/v1.16/client-server-api/#definition-clientevent_unsigneddata - */ -class UnsignedData implements \JsonSerializable -{ - public function __construct( - private ?int $age = null, - private ?MembershipState $membership = null, - private ?array $previousContent = null, - private ?ClientEvent $redactedBecause = null, - private ?string $transactionId = null, - ) - {} - - public function jsonSerialize(): array - { - return array_filter([ - "age" => $this->age, - "membership" => $this->membership, - "prev_content" => $this->previousContent, - "redacted_because" => $this->redactedBecause, - "transaction_id" => $this->transactionId, - ], fn ($value) => ! is_null($value)); - } -} |
