public function getCalledListeners(): array
    {
        $called = [];

        foreach ($this->called as $eventName => $listeners) {
            foreach ($listeners as $listener) {
                $called[$eventName][] = $listener->getInfo($eventName);
            }
        }

        return $called;
    }
public function getCalledListeners(): array
    {
        $called = [];

        foreach ($this->called as $eventName => $listeners) {
            foreach ($listeners as $listener) {
                $called[$eventName][] = $listener->getInfo($eventName);
            }
        }

        return $called;
    }
public function getCalledListeners ( ) : array { $ called = [ ] ; foreach ( $ this -> called as $ eventName => $ listeners ) { foreach ( $ listeners as $ listener ) { $ called [ $ eventName ] [ ] = $ listener -> getInfo ( $ eventName ) ; } } return $ called ; }
Gets the called listeners.

@return array An array of called listeners
Gets the called listeners .