1 | <?php |
||
10 | trait CollectionTrait |
||
11 | { |
||
12 | |||
13 | use JobTrait; |
||
14 | |||
15 | /** |
||
16 | * @var JobInterface[] |
||
17 | */ |
||
18 | protected $jobs; |
||
19 | |||
20 | /** |
||
21 | * @param string $class |
||
22 | * @return array |
||
23 | */ |
||
24 | protected function jobConfig(string $class): array |
||
30 | |||
31 | /** |
||
32 | * @param array $jobs |
||
33 | * @return static |
||
34 | */ |
||
35 | public function setJobs(array $jobs = []) |
||
41 | |||
42 | /** |
||
43 | * @param array $jobs |
||
44 | * @return static |
||
45 | */ |
||
46 | protected function addJobs(array $jobs = []) |
||
57 | |||
58 | /** |
||
59 | * @param $key |
||
60 | * @param $job |
||
61 | * @return static |
||
62 | */ |
||
63 | public function addJob($key, $job) |
||
77 | |||
78 | /** |
||
79 | * @return JobInterface[] |
||
80 | */ |
||
81 | public function getJobs() |
||
85 | |||
86 | /** |
||
87 | * @param $identifier |
||
88 | * @return JobInterface |
||
89 | */ |
||
90 | public function findJob($identifier) |
||
94 | |||
95 | /** |
||
96 | * @param $identifier |
||
97 | * @return JobInterface |
||
98 | * @throws Exception |
||
99 | */ |
||
100 | public function getJob($identifier) |
||
108 | |||
109 | /** |
||
110 | * @param $identifier |
||
111 | * @param array $config |
||
112 | * @return JobInterface |
||
113 | */ |
||
114 | public function createJob($identifier, array $config = []) |
||
120 | } |
||
121 |
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..