summaryrefslogtreecommitdiff
path: root/matrix-specification/Responses/ClientDirectoryRoomAliasGetResponse.php
blob: a2a63465693c8388ca70b1ac3355698a7abf9646 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

namespace Matrix\Responses;

class ClientDirectoryRoomAliasGetResponse implements \JsonSerializable
{
  /**
   * @param string[] $servers
   */
  public function __construct(
    private string $roomId,
    private array $servers,
  )
  {}

  public function jsonSerialize(): array
  {
    return [
      "room_id" => $this->roomId,
      "servers" => $this->servers,
    ];
  }
}