public function isIdleTimeout() { return self::TYPE_IDLE ===
$this->timeoutType;
} public function getExceededTimeout(): ?float
{ return match ($this->timeoutType
) { self::TYPE_GENERAL =>
$this->process->
getTimeout(),
self::TYPE_IDLE =>
$this->process->
getIdleTimeout(),
default =>
throw new \
LogicException(sprintf('Unknown timeout type "%d".',
$this->timeoutType
)),
};
}}