Webmozart\Console\Api\Config\ApplicationConfig::setDebug PHP Метод

setDebug() публичный Метод

In debug mode, the verbosity is always {@link IO::DEBUG}.
См. также: isDebug()
public setDebug ( boolean $debug ) : static
$debug boolean Set to `true` to activate the debug mode.
Результат static The current instance.
    public function setDebug($debug)
    {
        Assert::boolean($debug);
        $this->debug = $debug;
        return $this;
    }

Usage Example

Пример #1
0
 public function testSetDebug()
 {
     $this->assertFalse($this->config->isDebug());
     $this->config->setDebug(true);
     $this->assertTrue($this->config->isDebug());
     $this->config->setDebug(false);
     $this->assertFalse($this->config->isDebug());
 }