public function setTimeout($timeout)
    {
        if (null === $timeout) {
            $this->timeout = null;

            return $this;
        }

        $timeout = (float) $timeout;

        if ($timeout < 0) {
            throw new InvalidArgumentException('The timeout value must be a valid positive integer or float number.');
        }

        $this->timeout = $timeout;

        return $this;
    }
public function setTimeout($timeout)
    {
        if (null === $timeout) {
            $this->timeout = null;

            return $this;
        }

        $timeout = (float) $timeout;

        if ($timeout < 0) {
            throw new InvalidArgumentException('The timeout value must be a valid positive integer or float number.');
        }

        $this->timeout = $timeout;

        return $this;
    }
public function setTimeout ( $ timeout ) { if ( null === $ timeout ) { $ this -> timeout = null ; return $ this ; } $ timeout = ( float ) $ timeout ; if ( $ timeout < 0 ) { throw new InvalidArgumentException ( 'The timeout value must be a valid positive integer or float number.' ) ; } $ this -> timeout = $ timeout ; return $ this ; }
Sets the process timeout.

To disable the timeout, set this value to null.

@param float|null $timeout

@return ProcessBuilder

@throws InvalidArgumentException
Sets the process timeout .