src/Readline.php
public function setCompleter(callable $completer)
    {
        if (!Readline::isFullySupported()) {
            throw new \LogicException(sprintf('%s requires readline support to use the completer.', __CLASS__));
        }

        $this->completer = $completer;
        return $this;
    }
public function setCompleter(callable $completer)
    {
        if (!Readline::isFullySupported()) {
            throw new \LogicException(sprintf('%s requires readline support to use the completer.', __CLASS__));
        }

        $this->completer = $completer;
        return $this;
    }
public function setCompleter ( callable $ completer ) { if ( ! Readline :: isFullySupported ( ) ) { throw new \ LogicException ( sprintf ( '%s requires readline support to use the completer.' , __CLASS__ ) ) ; } $ this -> completer = $ completer ; return $ this ; }
Sets the auto-complete callback

@param callable $completer
@return $this
@throws \LogicException When PHP is not compiled with readline support.
Sets the auto - complete callback