src/EventSourcing/Common/EventSourcedAggregateRoot.php
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