for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Ivory Http Adapter package.
*
* (c) Eric GELOEN <[email protected]>
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/
namespace Ivory\HttpAdapter\Event\Retry\Strategy;
/**
* @author GeLo <[email protected]>
abstract class AbstractDelayedRetryStrategy extends AbstractRetryStrategyChain
{
* @var float
private $delay;
* @param float $delay
* @param RetryStrategyChainInterface|null $next
public function __construct($delay = 5.0, RetryStrategyChainInterface $next = null)
parent::__construct($next);
$this->setDelay($delay);
}
* @return float
public function getDelay()
return $this->delay;
public function setDelay($delay)
$this->delay = $delay;