Total Complexity | 9 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class FirstOutboxEntry implements OutboxEntry |
||
13 | { |
||
14 | private DomainEvent $domainEvent; |
||
15 | |||
16 | public function __construct(DomainEvent $domainEvent) |
||
17 | { |
||
18 | $this->domainEvent = $domainEvent; |
||
19 | } |
||
20 | |||
21 | public function getAggregateId(): UuidInterface |
||
22 | { |
||
23 | return Uuid::fromString('d1702762-548b-11e9-8647-d663bd873d93'); |
||
24 | } |
||
25 | |||
26 | public function getAggregateType(): string |
||
27 | { |
||
28 | return 'Order'; |
||
29 | } |
||
30 | |||
31 | public function getPayloadType(): string |
||
32 | { |
||
33 | return 'OrderStructure'; |
||
34 | } |
||
35 | |||
36 | public function getMessageKey(): string |
||
37 | { |
||
38 | return 'd663bd873d93'; |
||
39 | } |
||
40 | |||
41 | public function getMessageRoute(): string |
||
42 | { |
||
43 | return 'aggregate.order'; |
||
44 | } |
||
45 | |||
46 | public function getMessageType(): string |
||
47 | { |
||
48 | return $this->domainEvent->getName(); |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @return mixed[] |
||
53 | */ |
||
54 | public function getPayload(): array |
||
57 | } |
||
58 | |||
59 | public function getSchemaVersion(): int |
||
62 | } |
||
63 | } |
||
64 |