diff options
Diffstat (limited to 'matrix-specification/Responses/ClientKeysUploadPostResponse.php')
| -rw-r--r-- | matrix-specification/Responses/ClientKeysUploadPostResponse.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/matrix-specification/Responses/ClientKeysUploadPostResponse.php b/matrix-specification/Responses/ClientKeysUploadPostResponse.php new file mode 100644 index 0000000..ff81734 --- /dev/null +++ b/matrix-specification/Responses/ClientKeysUploadPostResponse.php @@ -0,0 +1,21 @@ +<?php + +namespace Matrix\Responses; + +class ClientKeysUploadPostResponse implements \JsonSerializable +{ + /** + * @param array<string, integer> $oneTimeKeyCounts + */ + public function __construct( + private array $oneTimeKeyCounts, + ) + {} + + public function jsonSerialize(): array + { + return [ + "one_time_keys_counts" => $this->oneTimeKeyCounts, + ]; + } +} |
