8889841chome/clixcotz/mars.clix.co.tz/vendor/psy/psysh/src/Readline/Hoa/EventListens.php000066600000005130150514557510023735 0ustar00getListener(); if (null === $listener) { throw new EventException('Cannot attach a callable to the listener %s because '.'it has not been initialized yet.', 0, static::class); } $listener->attach($listenerId, $callable); return $this; } /** * Sets a new listener. */ protected function setListener(EventListener $listener) { $old = $this->_listener; $this->_listener = $listener; return $old; } /** * Returns the listener. */ protected function getListener() { return $this->_listener; } }