| 1 | <?php |
||
| 13 | class AbstractEvent extends \League\Event\AbstractEvent implements EventInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var UuidInterface |
||
| 17 | */ |
||
| 18 | private $uuid; |
||
| 19 | /** |
||
| 20 | * @var \DateTimeImmutable |
||
| 21 | */ |
||
| 22 | private $createdAt; |
||
| 23 | /** |
||
| 24 | * @var object |
||
| 25 | */ |
||
| 26 | protected $target; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * AbstractEvent constructor. |
||
| 30 | * |
||
| 31 | * @param null $target |
||
| 32 | * @throws \Exception |
||
| 33 | */ |
||
| 34 | public function __construct($target = null) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return object|null |
||
| 43 | */ |
||
| 44 | public function getTarget() |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @inheritdoc |
||
| 51 | */ |
||
| 52 | public function uuid(): UuidInterface |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @inheritdoc |
||
| 59 | */ |
||
| 60 | public function type(): string |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @inheritdoc |
||
| 67 | */ |
||
| 68 | public function createdAt(): \DateTimeImmutable |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @inheritdoc |
||
| 75 | */ |
||
| 76 | public function getName() |
||
| 81 | |||
| 82 | /** |
||
| 83 | * @return array|mixed |
||
| 84 | */ |
||
| 85 | public function jsonSerialize() |
||
| 93 | } |
||
| 94 |