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

namespace Matrix\Responses;

use Matrix\Data\DiscoveryInformation;
use Matrix\Response;

class WellKnownMatrixClientGetResponse extends Response
{
  public function __construct(
    private DiscoveryInformation $discoveryInformation,
  )
  {}

  public function getBody(): array
  {
    return $this->discoveryInformation->jsonSerialize();
  }
}