1 | <?php |
||
17 | abstract class AbstractDelayedRetryStrategy extends AbstractRetryStrategyChain |
||
18 | { |
||
19 | /** |
||
20 | * @var float |
||
21 | */ |
||
22 | private $delay; |
||
23 | |||
24 | /** |
||
25 | * @param float $delay |
||
26 | * @param RetryStrategyChainInterface|null $next |
||
27 | */ |
||
28 | 108 | public function __construct($delay = 5.0, RetryStrategyChainInterface $next = null) |
|
34 | |||
35 | /** |
||
36 | * @return float |
||
37 | */ |
||
38 | 90 | public function getDelay() |
|
42 | |||
43 | /** |
||
44 | * @param float $delay |
||
45 | */ |
||
46 | 108 | public function setDelay($delay) |
|
50 | } |
||
51 |