private function record($domainEvent)
    {
        $this->ensureChangesEventStream();
        $this->changes = $this->changes->append($domainEvent);
    }
private function record($domainEvent)
    {
        $this->ensureChangesEventStream();
        $this->changes = $this->changes->append($domainEvent);
    }
private function record ( $ domainEvent ) { $ this -> ensureChangesEventStream ( ) ; $ this -> changes = $ this -> changes -> append ( $ domainEvent ) ; }
Record a Domain Event

@param mixed $domainEvent
Record a Domain Event