Total Complexity | 4 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
5 | abstract class AbstractService implements ServiceInterface |
||
6 | { |
||
7 | private $maxFailures; |
||
8 | private $retryTimeout; |
||
9 | |||
10 | public function __construct(int $maxFailures, int $retryTimeout) |
||
11 | { |
||
12 | $this->maxFailures = $maxFailures; |
||
13 | $this->retryTimeout = $retryTimeout; |
||
14 | } |
||
15 | |||
16 | public function getIdentifier(): string |
||
17 | { |
||
18 | return static::class; |
||
19 | } |
||
20 | |||
21 | public function getMaxFailures(): int |
||
24 | } |
||
25 | |||
26 | public function getRetryTimeout(): int |
||
29 | } |
||
30 | } |
||
31 |