src/Application/Process/ProcessBuilder.php
public function timeout($timeout): ProcessBuilder
    {
        if ($timeout === null) {
            $this->timeout = null;

            return $this;
        }

        $timeout = (float) $timeout;

        if ($timeout < 0) {
            throw new DomainException('Timeout must be a positive number');
        }

        $this->timeout = $timeout;

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

            return $this;
        }

        $timeout = (float) $timeout;

        if ($timeout < 0) {
            throw new DomainException('Timeout must be a positive number');
        }

        $this->timeout = $timeout;

        return $this;
    }
public function timeout ( $ timeout ) : ProcessBuilder { if ( $ timeout === null ) { $ this -> timeout = null ; return $ this ; } $ timeout = ( float ) $ timeout ; if ( $ timeout < 0 ) { throw new DomainException ( 'Timeout must be a positive number' ) ; } $ this -> timeout = $ timeout ; return $ this ; }
Sets the timeout in seconds

@param int|float|null $timeout The timeout in seconds

@return ProcessBuilder

@throws DomainException When the timeout is invalid
Sets the timeout in seconds