Enables or disables interaction with the user.
public setInteractive ( boolean $interactive ) | ||
$interactive | boolean | Whether the inputmay interact with the user. If set to `false`, all calls to {@link read()} and {@link readLine()} will immediately return the default value. |