AsyncPHP\Doorman\Manager\ProcessManager::setLogPath PHP Method

setLogPath() public method

public setLogPath ( string $logPath )
$logPath string
    public function setLogPath($logPath)
    {
        $this->logPath = $logPath;
        return $this;
    }

Usage Example

コード例 #1
0
 /**
  * @test
  */
 public function gettersAndSettersWork()
 {
     $this->manager->setLogPath(__DIR__);
     $this->assertEquals(__DIR__, $this->manager->getLogPath());
     $this->assertInstanceOf("AsyncPHP\\Doorman\\Shell", $this->manager->getShell());
     $shell = new BashShell();
     $this->manager->setShell($shell);
     $this->assertEquals($shell, $this->manager->getShell());
     $this->assertInstanceOf("AsyncPHP\\Doorman\\Rules", $this->manager->getRules());
     $rules = new InMemoryRules();
     $this->manager->setRules($rules);
     $this->assertEquals($rules, $this->manager->getRules());
 }
All Usage Examples Of AsyncPHP\Doorman\Manager\ProcessManager::setLogPath