summaryrefslogtreecommitdiff
path: root/matrix-specification/Responses/ClientKeysUploadPostResponse.php
blob: ff817345fcfe0a4475dff62c751477cb5582e03d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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,
    ];
  }
}