PDepend\Report\Summary\Xml::setLogFile PHP Method

setLogFile() public method

Sets the output log file.
public setLogFile ( string $logFile ) : void
$logFile string The output log file.
return void
    public function setLogFile($logFile)
    {
        $this->logFile = $logFile;
    }

Usage Example

 /**
  * Creates the PDepend summary report for the source associated with the
  * calling test case.
  *
  * @return string
  * @since 0.10.0
  */
 protected function createSummaryXmlForCallingTest()
 {
     $this->changeWorkingDirectory($this->createCodeResourceURI('config/'));
     $file = self::createRunResourceURI('summary.xml');
     $log = new Xml();
     $log->setLogFile($file);
     $pdepend = $this->createEngineFixture();
     $pdepend->addFile(self::createCodeResourceUriForTest());
     $pdepend->addReportGenerator($log);
     $pdepend->analyze();
     return $file;
 }
All Usage Examples Of PDepend\Report\Summary\Xml::setLogFile