src/ShellCommand.php
public function setRetryLimit($retryLimit = null)
    {
        if (! is_numeric($retryLimit) && ! is_null($retryLimit)) {
            throw new InvalidArgumentException('Retry limit must be a number or null.');
        }

        if (is_string($retryLimit)) {
            $retryLimit = (int) $retryLimit;
        }

        $this->retryLimit = $retryLimit;

        return $this;
    }
public function setRetryLimit($retryLimit = null)
    {
        if (! is_numeric($retryLimit) && ! is_null($retryLimit)) {
            throw new InvalidArgumentException('Retry limit must be a number or null.');
        }

        if (is_string($retryLimit)) {
            $retryLimit = (int) $retryLimit;
        }

        $this->retryLimit = $retryLimit;

        return $this;
    }
public function setRetryLimit ( $ retryLimit = null ) { if ( ! is_numeric ( $ retryLimit ) && ! is_null ( $ retryLimit ) ) { throw new InvalidArgumentException ( 'Retry limit must be a number or null.' ) ; } if ( is_string ( $ retryLimit ) ) { $ retryLimit = ( int ) $ retryLimit ; } $ this -> retryLimit = $ retryLimit ; return $ this ; }
Set the number of times to retry a command if it fails.

Set the limit to null to retry forever.

@param int|null $retryLimit

@return $this
Set the number of times to retry a command if it fails .