Total Complexity | 7 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Coverage | 72.72% |
Changes | 3 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
8 | class Worker { |
||
9 | |||
10 | /** |
||
11 | * @var ConnectionInterface |
||
12 | */ |
||
13 | protected $connection; |
||
14 | |||
15 | /** |
||
16 | * @var int |
||
17 | */ |
||
18 | protected $attempts; |
||
19 | |||
20 | /** |
||
21 | * Worker constructor. |
||
22 | * |
||
23 | * @param ConnectionInterface $connection |
||
24 | * @param int $attempts |
||
25 | */ |
||
26 | 4 | public function __construct( $connection, $attempts = 3 ) { |
|
29 | 4 | } |
|
30 | |||
31 | /** |
||
32 | * Process a job on the queue. |
||
33 | * |
||
34 | * @return bool |
||
35 | */ |
||
36 | 2 | public function process() { |
|
66 | } |