1 | <?php |
||
23 | class JobManager |
||
24 | { |
||
25 | /** |
||
26 | * @var Driver |
||
27 | */ |
||
28 | private $driver; |
||
29 | |||
30 | /** |
||
31 | * @var Configuration |
||
32 | */ |
||
33 | private $config; |
||
34 | |||
35 | /** |
||
36 | * @var ContainerInterface |
||
37 | */ |
||
38 | private $container; |
||
39 | |||
40 | /** |
||
41 | * @var EventDispatcherInterface |
||
42 | */ |
||
43 | private $eventDispatcher; |
||
44 | |||
45 | /** |
||
46 | * @var Bernard\QueueFactory |
||
47 | */ |
||
48 | private $queueFactory; |
||
49 | |||
50 | /** |
||
51 | * @var Bernard\Router |
||
52 | */ |
||
53 | private $router; |
||
54 | |||
55 | /** |
||
56 | * @var JobDispatcher |
||
57 | */ |
||
58 | private $jobDispatcher; |
||
59 | |||
60 | /** |
||
61 | * Creates a new job manager |
||
62 | * |
||
63 | * @param Configuration $config |
||
64 | * @param ContainerInterface $container |
||
65 | */ |
||
66 | public function __construct(Configuration $config, ContainerInterface $container) |
||
79 | |||
80 | /** |
||
81 | * @return JobDispatcher |
||
82 | */ |
||
83 | private function createDispatcher() |
||
91 | |||
92 | /** |
||
93 | * Creates serializer based on declared normalizers |
||
94 | * |
||
95 | * @return Serializer |
||
96 | */ |
||
97 | private function createSerializer() |
||
116 | |||
117 | /** |
||
118 | * Creates a new worker builder |
||
119 | * |
||
120 | * @return WorkerBuilder |
||
121 | */ |
||
122 | public function createWorkerBuilder() |
||
126 | |||
127 | /** |
||
128 | * Dispatch a job |
||
129 | */ |
||
130 | public function dispatch(Job $job) |
||
134 | |||
135 | /** |
||
136 | * @return Configuration |
||
137 | */ |
||
138 | public function getConfiguration() |
||
142 | |||
143 | /** |
||
144 | * Get driver |
||
145 | * |
||
146 | * @return Driver |
||
147 | */ |
||
148 | public function getDriver() |
||
152 | |||
153 | /** |
||
154 | * @return ContainerInterface |
||
155 | */ |
||
156 | public function getContainer() |
||
160 | |||
161 | /** |
||
162 | * @return \Symfony\Component\EventDispatcher\EventDispatcherInterface |
||
163 | */ |
||
164 | public function getEventDispatcher() |
||
168 | |||
169 | /** |
||
170 | * @return \Bernard\QueueFactory |
||
171 | */ |
||
172 | public function getQueueFactory() |
||
176 | |||
177 | /** |
||
178 | * @return \Bernard\Router |
||
179 | */ |
||
180 | public function getRouter() |
||
184 | } |
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..