@@ -25,7 +25,7 @@ class JobHandler
2525 public $ queue ;
2626
2727 /**
28- * @var \Resque\Worker\Resque Instance of the Resque worker running this job.
28+ * @var \Resque\Worker\ResqueWorker Instance of the Resque worker running this job.
2929 */
3030 public $ worker ;
3131
@@ -35,7 +35,7 @@ class JobHandler
3535 public $ payload ;
3636
3737 /**
38- * @var object|\Resque\Job\JobInterface Instance of the class performing work for this job.
38+ * @var object|\Resque\Job\JobInterface|null Instance of the class performing work for this job.
3939 */
4040 private $ instance ;
4141
@@ -59,12 +59,12 @@ public function __construct($queue, $payload)
5959 /**
6060 * Create a new job and save it to the specified queue.
6161 *
62- * @param string $queue The name of the queue to place the job in.
63- * @param string $class The name of the class that contains the code to execute the job.
64- * @param array $args Any optional arguments that should be passed when the job is executed.
65- * @param boolean $monitor Set to true to be able to monitor the status of a job.
66- * @param string $id Unique identifier for tracking the job. Generated if not supplied.
67- * @param string $prefix The prefix needs to be set for the status key
62+ * @param string $queue The name of the queue to place the job in.
63+ * @param class- string $class The name of the class that contains the code to execute the job.
64+ * @param array|null $args Any optional arguments that should be passed when the job is executed.
65+ * @param boolean $monitor Set to true to be able to monitor the status of a job.
66+ * @param string $id Unique identifier for tracking the job. Generated if not supplied.
67+ * @param string $prefix The prefix needs to be set for the status key
6868 *
6969 * @return string
7070 * @throws \InvalidArgumentException
@@ -187,8 +187,10 @@ public function getInstance()
187187 return $ this ->instance ;
188188 }
189189
190- $ this ->instance = $ this ->getJobFactory ()->create ($ this ->payload ['class ' ], $ this ->getArguments (), $ this ->queue );
190+ $ this ->instance = $ this ->getJobFactory ()
191+ ->create ($ this ->payload ['class ' ], $ this ->getArguments (), $ this ->queue );
191192 $ this ->instance ->job = $ this ;
193+
192194 return $ this ->instance ;
193195 }
194196
@@ -197,7 +199,7 @@ public function getInstance()
197199 * associated with the job with the supplied arguments.
198200 *
199201 * @return bool
200- * @throws Resque\Exceptions\ResqueException When the job's class could not be found
202+ * @throws \ Resque\Exceptions\ResqueException When the job's class could not be found
201203 * or it does not contain a perform method.
202204 */
203205 public function perform ()
@@ -308,8 +310,8 @@ public function __toString()
308310 }
309311
310312 /**
311- * @param Resque\Job\FactoryInterface $jobFactory
312- * @return Resque\JobHandler
313+ * @param \ Resque\Job\FactoryInterface $jobFactory
314+ * @return \ Resque\JobHandler
313315 */
314316 public function setJobFactory (FactoryInterface $ jobFactory )
315317 {
@@ -319,7 +321,7 @@ public function setJobFactory(FactoryInterface $jobFactory)
319321 }
320322
321323 /**
322- * @return Resque\Job\FactoryInterface
324+ * @return \ Resque\Job\FactoryInterface
323325 */
324326 public function getJobFactory ()
325327 {
0 commit comments