1 | <?php |
||
12 | class WorkerBuilder |
||
13 | { |
||
14 | /** |
||
15 | * @var JobManager |
||
16 | */ |
||
17 | protected $jm; |
||
18 | |||
19 | /** |
||
20 | * Creates a new Worker builder |
||
21 | * |
||
22 | * @param JobManager $jm |
||
23 | */ |
||
24 | public function __construct(JobManager $jm) |
||
28 | |||
29 | /** |
||
30 | * @var string[] |
||
31 | */ |
||
32 | protected $queueNames = []; |
||
33 | |||
34 | /** |
||
35 | * Using queue |
||
36 | * |
||
37 | * @param string $queueName |
||
38 | * |
||
39 | * @return self |
||
40 | */ |
||
41 | public function usingQueue($queueName) |
||
47 | |||
48 | /** |
||
49 | * Using multiple queues |
||
50 | * |
||
51 | * @param string[] $queueNames |
||
52 | * |
||
53 | * @return self |
||
54 | */ |
||
55 | public function usingMultipleQueues(array $queueNames) |
||
61 | |||
62 | /** |
||
63 | * Using Driver class |
||
64 | * |
||
65 | * @param string $driverClass |
||
66 | * |
||
67 | * @return self |
||
68 | */ |
||
69 | public function usingDriverClass($driverClass) |
||
75 | |||
76 | /** |
||
77 | * Build worker |
||
78 | * |
||
79 | * @return Worker |
||
80 | */ |
||
81 | public function build() |
||
94 | |||
95 | /** |
||
96 | * @return \Bernard\Queue |
||
97 | */ |
||
98 | protected function getQueue() |
||
117 | |||
118 | /** |
||
119 | * @return Retry\RetryStrategy |
||
120 | */ |
||
121 | protected function getRetryStrategy() |
||
128 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..