summaryrefslogtreecommitdiff
path: root/matrix-specification/Data/AccountData.php
blob: fa3e4a301b8d5d88e13d0a7e61811a021efed8d0 (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\Data;

use Matrix\Events\Event;

class AccountData implements \JsonSerializable
{
  /**
   * @param Event[] $events
   */
  public function __construct(
    private array $events
  )
  {}

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