Total Complexity | 10 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class ThirdOutboxEntry implements OutboxEntry |
||
13 | { |
||
14 | private DomainEvent $domainEvent; |
||
15 | |||
16 | public function __construct(DomainEvent $domainEvent) |
||
17 | { |
||
18 | $this->domainEvent = $domainEvent; |
||
19 | } |
||
20 | |||
21 | public function getName(): string |
||
22 | { |
||
23 | return 'CustomerDeleted'; |
||
24 | } |
||
25 | |||
26 | public function getAggregateId(): UuidInterface |
||
27 | { |
||
28 | return Uuid::fromString('49ca1f44-56ec-11e9-8647-d663bd873d93'); |
||
29 | } |
||
30 | |||
31 | public function getAggregateType(): string |
||
32 | { |
||
33 | return 'CustomerType'; |
||
34 | } |
||
35 | |||
36 | public function getPayloadType(): string |
||
37 | { |
||
38 | return 'CustomerDetails'; |
||
39 | } |
||
40 | |||
41 | public function getMessageKey(): string |
||
42 | { |
||
43 | return 'ba70d882'; |
||
44 | } |
||
45 | |||
46 | public function getMessageRoute(): string |
||
49 | } |
||
50 | |||
51 | public function getMessageType(): string |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * @return mixed[] |
||
58 | */ |
||
59 | public function getPayload(): array |
||
62 | } |
||
63 | |||
64 | public function getSchemaVersion(): int |
||
67 | } |
||
68 | } |
||
69 |