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

namespace Matrix\Data\Capability;

class BooleanCapability implements \JsonSerializable
{
  public function __construct(
    private bool $enabled,
  )
  {}

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