| Total Complexity | 9 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | final class FirstOutboxEntry 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 getAggregateId() : UuidInterface |
||
| 24 | { |
||
| 25 | return Uuid::fromString('d1702762-548b-11e9-8647-d663bd873d93'); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getAggregateType() : string |
||
| 29 | { |
||
| 30 | return 'Order'; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getPayloadType() : string |
||
| 34 | { |
||
| 35 | return 'OrderStructure'; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function getMessageKey() : string |
||
| 39 | { |
||
| 40 | return 'd663bd873d93'; |
||
| 41 | } |
||
| 42 | |||
| 43 | public function getMessageRoute() : string |
||
| 44 | { |
||
| 45 | return 'aggregate.order'; |
||
| 46 | } |
||
| 47 | |||
| 48 | public function getMessageType() : string |
||
| 49 | { |
||
| 50 | return $this->domainEvent->getName(); |
||
| 51 | } |
||
| 52 | |||
| 53 | public function getPayload() : string |
||
| 56 | } |
||
| 57 | |||
| 58 | public function getSchemaVersion() : int |
||
| 61 | } |
||
| 62 | } |
||
| 63 |