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