src/Jmikola/WildcardEventDispatcher/LazyListenerPattern.php
public function getListener()
    {
        if (!isset($this->listener) && isset($this->listenerProvider)) {
            $this->listener = call_user_func($this->listenerProvider);
            unset($this->listenerProvider);
        }

        return $this->listener;
    }
public function getListener()
    {
        if (!isset($this->listener) && isset($this->listenerProvider)) {
            $this->listener = call_user_func($this->listenerProvider);
            unset($this->listenerProvider);
        }

        return $this->listener;
    }
public function getListener ( ) { if ( ! isset ( $ this -> listener ) && isset ( $ this -> listenerProvider ) ) { $ this -> listener = call_user_func ( $ this -> listenerProvider ) ; unset ( $ this -> listenerProvider ) ; } return $ this -> listener ; }
Get the pattern listener, initializing it lazily from its provider.

@return callback
Get the pattern listener initializing it lazily from its provider .