protected function raise(DomainEvent $event): void {
        $this->apply($event);
        $this->streamEvents = $this->streamEvents->add(
            new StreamEvent($this->aggregateId(), $this->aggregateVersion(), $event)
        );
    }