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

namespace Matrix\Responses;

use Matrix\Response;

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

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