original_string: protected function raise(DomainEvent $event): void {
          $this->apply($event);
          $this->streamEvents = $this->streamEvents->add(
              new StreamEvent($this->aggregateId(), $this->aggregateVersion(), $event)
          );
      }
code: protected function raise(DomainEvent $event): void {
          $this->apply($event);
          $this->streamEvents = $this->streamEvents->add(
              new StreamEvent($this->aggregateId(), $this->aggregateVersion(), $event)
          );
      }
code_tokens: protected function raise ( DomainEvent $ event ) : void { $ this -> apply ( $ event ) ; $ this -> streamEvents = $ this -> streamEvents -> add ( new StreamEvent ( $ this -> aggregateId ( ) , $ this -> aggregateVersion ( ) , $ event ) ) ; }
docstring: raise an event from within the aggregate. this applies
  the event to the aggregate state and stores it in the
  pending stream events collection awaiting flush.
  
  @param DomainEvent $event
docstring_tokens: raise an event from within the aggregate . this applies the event to the aggregate state and stores it in the pending stream events collection awaiting flush .