| 1 | <?php |
||
| 19 | class StoredEvent implements DomainEvent |
||
| 20 | { |
||
| 21 | private $order; |
||
| 22 | private $name; |
||
| 23 | private $event; |
||
| 24 | |||
| 25 | public function __construct(int $order, StreamName $name, DomainEvent $event) |
||
| 31 | |||
| 32 | public function order() : int |
||
| 36 | |||
| 37 | public function name() : string |
||
| 41 | |||
| 42 | public function occurredOn() : \DateTimeInterface |
||
| 46 | |||
| 47 | public function event() : DomainEvent |
||
| 51 | } |
||
| 52 |