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

namespace Matrix\Events;

use Matrix\Enums\EventType;

abstract class Event implements \JsonSerializable
{
  /**
   * @param array<string, mixed> $content
   */
  public function __construct(
    protected array $content,
    protected EventType $type,
  )
  {}
}