src/Loops/Misc/EventTrait.php
public function bindEventObject($object, $filter = FALSE) {
        $this->bound_event_objects[] = [ $filter === FALSE ? FALSE : (array)$filter, $object ];
        $this->event_cache_state = [];
    }
public function bindEventObject($object, $filter = FALSE) {
        $this->bound_event_objects[] = [ $filter === FALSE ? FALSE : (array)$filter, $object ];
        $this->event_cache_state = [];
    }
public function bindEventObject ( $ object , $ filter = FALSE ) { $ this -> bound_event_objects [ ] = [ $ filter === FALSE ? FALSE : ( array ) $ filter , $ object ] ; $ this -> event_cache_state = [ ] ; }
Registers all event listener of an object to this object.

After an object is bound, all listeners of that object will also be called if an event is fired (on this object).

@param object $object The target object from which the listeners will be registered.
@param bool|string[] Only register the listeners that are passed via an array. Set to FALSE to register all listeners.
Registers all event listener of an object to this object .