Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | private function createDelayStrategyResolver(array $strategiesByQueues): DelayStrategyResolver |
||
15 | { |
||
16 | $arithmeticStrategy = new ArithmeticProgressionStrategy(100, 4); |
||
17 | $geometricStrategy = new GeometricProgressionStrategy(30, 2); |
||
18 | $defaultStrategy = new GeometricProgressionStrategy(60, 3); |
||
19 | |||
20 | $strategies = [ |
||
21 | 'arithmetic_strategy_key' => $arithmeticStrategy, |
||
22 | 'geometric_strategy_key' => $geometricStrategy, |
||
23 | 'default_delay_strategy' => $defaultStrategy, |
||
24 | ]; |
||
25 | |||
26 | return new DelayStrategyResolver($this->createStrategiesList($strategies), $strategiesByQueues); |
||
27 | } |
||
28 | |||
69 |