ZF\Console\Application::setDebug PHP 메소드

setDebug() 공개 메소드

Sets the debug flag of the application
public setDebug ( boolean $flag )
$flag boolean
    public function setDebug($flag)
    {
        $this->debug = (bool) $flag;
        return $this;
    }

Usage Example

예제 #1
0
 /**
  * @group 9
  */
 public function testDebugModeIsMutable()
 {
     $application = new Application('ZFConsoleApplication', $this->version, $this->getRoutes(), $this->console, $this->dispatcher);
     $application->setDebug(true);
     $this->assertAttributeSame(true, 'debug', $application);
 }