Tolerance\Operation\Runner\RetryOperationRunner::__construct PHP Method

__construct() public method

public __construct ( Tolerance\Operation\Runner\OperationRunner $runner, Tolerance\Waiter\Waiter $waitStrategy, Tolerance\Operation\ExceptionCatcher\ExceptionCatcherVoter $exceptionCatcherVoter = null )
$runner Tolerance\Operation\Runner\OperationRunner
$waitStrategy Tolerance\Waiter\Waiter
$exceptionCatcherVoter Tolerance\Operation\ExceptionCatcher\ExceptionCatcherVoter
    public function __construct(OperationRunner $runner, Waiter $waitStrategy, ExceptionCatcherVoter $exceptionCatcherVoter = null)
    {
        $this->runner = $runner;
        $this->waitStrategy = $waitStrategy;
        $this->exceptionCatcherVoter = $exceptionCatcherVoter ?: new WildcardExceptionVoter();
        if (!$this->exceptionCatcherVoter instanceof ThrowableCatcherVoter) {
            trigger_error(sprintf('%s is deprecated, you should implement %s instead', ExceptionCatcherVoter::class, ThrowableCatcherVoter::class), E_USER_DEPRECATED);
        }
    }