| Conditions | 3 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 56 | public function __construct( |
||
| 57 | AggregateUuid $eventId, |
||
| 58 | $type, |
||
| 59 | $body, |
||
| 60 | $version = null, |
||
| 61 | $occurred_on = null |
||
| 62 | ) { |
||
| 63 | $this->uuid = $eventId; |
||
| 64 | $this->type = $type; |
||
| 65 | $this->body = $body; |
||
| 66 | $this->payload = get_class($this); |
||
| 67 | $this->version = ($version) ?: 0; |
||
| 68 | $this->occurred_on = ($occurred_on) ? new \DateTimeImmutable($occurred_on) : new \DateTimeImmutable(); |
||
| 69 | } |
||
| 119 |