src/Budkit/Event/Observer.php
public function getListeners($eventName = null)
    {

        if (empty($eventName)) return $this->listeners;
        if (!empty($eventName) && !isset($this->listeners[$eventName])) return [];

        return $this->listeners[$eventName];
    }
public function getListeners($eventName = null)
    {

        if (empty($eventName)) return $this->listeners;
        if (!empty($eventName) && !isset($this->listeners[$eventName])) return [];

        return $this->listeners[$eventName];
    }
public function getListeners ( $ eventName = null ) { if ( empty ( $ eventName ) ) return $ this -> listeners ; if ( ! empty ( $ eventName ) && ! isset ( $ this -> listeners [ $ eventName ] ) ) return [ ] ; return $ this -> listeners [ $ eventName ] ; }
Returns the callbacks attached to a specific event;

@param string $eventName

@return void
@author Livingstone Fultang
Returns the callbacks attached to a specific event ;