src/Domain/Model/AggregateRoot.php
protected function eventCollection(): EventCollection
    {
        if ($this->eventCollection === null) {
            $this->eventCollection = new EventCollection($this->id(), Type::create($this));
        }

        return $this->eventCollection;
    }
protected function eventCollection(): EventCollection
    {
        if ($this->eventCollection === null) {
            $this->eventCollection = new EventCollection($this->id(), Type::create($this));
        }

        return $this->eventCollection;
    }
protected function eventCollection ( ) : EventCollection { if ( $ this -> eventCollection === null ) { $ this -> eventCollection = new EventCollection ( $ this -> id ( ) , Type :: create ( $ this ) ) ; } return $ this -> eventCollection ; }
Retrieves the event collection

@return EventCollection
Retrieves the event collection