src/Events.php
public function merge(EventsInterface $source = null)
    {
        if (null === $source) {
            return $this->events;
        }
        $this->events = array_merge($this->events, $source->merge());
    }
public function merge(EventsInterface $source = null)
    {
        if (null === $source) {
            return $this->events;
        }
        $this->events = array_merge($this->events, $source->merge());
    }
public function merge ( EventsInterface $ source = null ) { if ( null === $ source ) { return $ this -> events ; } $ this -> events = array_merge ( $ this -> events , $ source -> merge ( ) ) ; }
Merges with other events.

@param EventsInterface $source The data source

@return null|array If the source was passed returns
null, source data otherwise
Merges with other events .