34 parent::__construct(sprintf(
35 'The process "%s" exceeded the timeout of %s seconds.',
48 return $this->timeoutType === self::TYPE_GENERAL;
53 return $this->timeoutType === self::TYPE_IDLE;
58 switch ($this->timeoutType) {
59 case self::TYPE_GENERAL:
60 return $this->process->getTimeout();
63 return $this->process->getIdleTimeout();
66 throw new \LogicException(sprintf(
'Unknown timeout type "%d".', $this->timeoutType));
__construct(Process $process, $timeoutType)
Exception that is thrown when a process times out.
getCommandLine()
Gets the command line to be executed.
Process is a thin wrapper around proc_* functions to easily start independent PHP processes...