Webmozart\Console\Api\IO\Input::isInteractive PHP Method

isInteractive() public method

Returns whether the user may be asked for input.
public isInteractive ( ) : boolean
return boolean Returns `true` if the user may be asked for input and `false` otherwise.
    public function isInteractive()
    {
        return $this->interactive;
    }

Usage Example

Exemplo n.º 1
0
 public function testIsInteractive()
 {
     $this->assertTrue($this->input->isInteractive());
     $this->input->setInteractive(false);
     $this->assertFalse($this->input->isInteractive());
     $this->input->setInteractive(true);
     $this->assertTrue($this->input->isInteractive());
 }
All Usage Examples Of Webmozart\Console\Api\IO\Input::isInteractive