1 | <?php |
||
8 | trait ProjectionTrait |
||
9 | { |
||
10 | private $state; |
||
11 | |||
12 | public static function fromArray(array $state = []) |
||
16 | |||
17 | public function getAggregateId(): string |
||
21 | |||
22 | public function getAggregateRevision(): int |
||
26 | |||
27 | public function toArray(): array |
||
31 | |||
32 | public function applyEvent(DomainEventInterface $domainEvent): ProjectionInterface |
||
36 | |||
37 | private function invokeEventHandler(DomainEventInterface $event): ProjectionInterface |
||
47 | |||
48 | private function __construct(array $state = []) |
||
52 | } |
||
53 |