1 | <?php |
||
18 | abstract class Job implements JobInterface |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * @var array primary key for invoke records. |
||
23 | */ |
||
24 | protected $ids = []; |
||
25 | |||
26 | /** |
||
27 | * QueueJob constructor. |
||
28 | * |
||
29 | * @param \yii\db\ActiveRecord|\yii\db\ActiveRecord[] $models need to making searchable index data. |
||
30 | */ |
||
31 | public function __construct($models) |
||
42 | |||
43 | /** |
||
44 | * @inheritDoc |
||
45 | */ |
||
46 | public function execute($queue) |
||
54 | |||
55 | /** |
||
56 | * Solve models job. |
||
57 | * |
||
58 | * @param array|\yii\db\ActiveRecord[] $models need to be execute searchable index job. |
||
59 | */ |
||
60 | abstract protected function resolve(array $models): void; |
||
61 | } |
||
62 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.