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.
Beispiel #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());
 }
Beispiel #2
0
 /**
  * Returns whether the user may be asked for input.
  *
  * @return bool Returns `true` if the user may be asked for input and
  *              `false` otherwise.
  */
 public function isInteractive()
 {
     return $this->input->isInteractive();
 }