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