| 1 | <?php |
||
| 16 | abstract class DomainEvent implements DomainEventInterface |
||
| 17 | { |
||
| 18 | /** @var AggregateIdInterface */ |
||
| 19 | private $aggregateId; |
||
| 20 | |||
| 21 | /** @var AggregateRevision */ |
||
| 22 | private $aggregateRevision; |
||
| 23 | |||
| 24 | 6 | public function getAggregateId(): AggregateIdInterface |
|
| 28 | |||
| 29 | 3 | public function getAggregateRevision(): AggregateRevision |
|
| 33 | |||
| 34 | 2 | public function withAggregateRevision(AggregateRevision $aggregateRevision): DomainEventInterface |
|
| 40 | |||
| 41 | 1 | public function toArray(): array |
|
| 48 | |||
| 49 | 7 | protected function __construct(AggregateIdInterface $aggregateId, AggregateRevision $aggregateRevision = null) |
|
| 54 | } |
||
| 55 |