| Total Complexity | 10 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | final class SecondOutboxEntry 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 'CartCreated'; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getAggregateId() : UuidInterface |
||
| 29 | { |
||
| 30 | return Uuid::fromString('cece22ea-57ae-11e9-8647-d663bd873d93'); |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getAggregateType() : string |
||
| 36 | } |
||
| 37 | |||
| 38 | public function getPayloadType() : string |
||
| 39 | { |
||
| 40 | return $this->domainEvent->getName(); |
||
| 41 | } |
||
| 42 | |||
| 43 | public function getMessageKey() : string |
||
| 44 | { |
||
| 45 | return 'af422e7a'; |
||
| 46 | } |
||
| 47 | |||
| 48 | public function getMessageRoute() : string |
||
| 51 | } |
||
| 52 | |||
| 53 | public function getMessageType() : string |
||
| 54 | { |
||
| 56 | } |
||
| 57 | |||
| 58 | public function getPayload() : string |
||
| 59 | { |
||
| 60 | return json_encode(['foo' => 'bar']); |
||
| 61 | } |
||
| 62 | |||
| 63 | public function getSchemaVersion() : int |
||
| 66 | } |
||
| 67 | } |
||
| 68 |