public function getInfo(string $eventName): array
    {
        if ($this->stub === null) {
            $this->stub = self::$hasClassStub ? new ClassStub($this->pretty . '()', $this->listener) : $this->pretty . '()';
        }

        return [
            'priority' => $this->eventManager !== null ? $this->eventManager->getListenerPriority($eventName, $this->listener) : null,
            'pretty'   => $this->pretty,
            'stub'     => $this->stub,
        ];
    }
public function getInfo(string $eventName): array
    {
        if ($this->stub === null) {
            $this->stub = self::$hasClassStub ? new ClassStub($this->pretty . '()', $this->listener) : $this->pretty . '()';
        }

        return [
            'priority' => $this->eventManager !== null ? $this->eventManager->getListenerPriority($eventName, $this->listener) : null,
            'pretty'   => $this->pretty,
            'stub'     => $this->stub,
        ];
    }
public function getInfo ( string $ eventName ) : array { if ( $ this -> stub === null ) { $ this -> stub = self :: $ hasClassStub ? new ClassStub ( $ this -> pretty . '()' , $ this -> listener ) : $ this -> pretty . '()' ; } return [ 'priority' => $ this -> eventManager !== null ? $ this -> eventManager -> getListenerPriority ( $ eventName , $ this -> listener ) : null , 'pretty' => $ this -> pretty , 'stub' => $ this -> stub , ] ; }
Get information's about given event.

@param string $eventName

@return array
Get information s about given event .