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