Symfony\Component\Process\Process::getTimeout PHP Method

getTimeout() public method

Gets the process timeout (max. runtime).
public getTimeout ( ) : float | null
return float | null The timeout in seconds or null if it's disabled
    public function getTimeout()
    {
        return $this->timeout;
    }

Usage Example

Example #1
0
 public function testNullTimeout()
 {
     $p = new Process('');
     $p->setTimeout(10);
     $p->setTimeout(null);
     $this->assertNull($p->getTimeout());
 }
All Usage Examples Of Symfony\Component\Process\Process::getTimeout