@@ -52,6 +52,8 @@ public function __construct($queue, $payload)
52
52
* @param string $class The name of the class that contains the code to execute the job.
53
53
* @param array $args Any optional arguments that should be passed when the job is executed.
54
54
* @param boolean $monitor Set to true to be able to monitor the status of a job.
55
+ *
56
+ * @return string
55
57
*/
56
58
public static function create ($ queue , $ class , $ args = null , $ monitor = false )
57
59
{
@@ -154,7 +156,7 @@ public function getInstance()
154
156
);
155
157
}
156
158
157
- $ this ->instance = new $ this ->payload ['class ' ];
159
+ $ this ->instance = new $ this ->payload ['class ' ]() ;
158
160
$ this ->instance ->job = $ this ;
159
161
$ this ->instance ->args = $ this ->getArguments ();
160
162
return $ this ->instance ;
@@ -164,6 +166,7 @@ public function getInstance()
164
166
* Actually execute a job by calling the perform method on the class
165
167
* associated with the job with the supplied arguments.
166
168
*
169
+ * @return bool
167
170
* @throws Resque_Exception When the job's class could not be found or it does not contain a perform method.
168
171
*/
169
172
public function perform ()
@@ -194,6 +197,8 @@ public function perform()
194
197
195
198
/**
196
199
* Mark the current job as having failed.
200
+ *
201
+ * @param $exception
197
202
*/
198
203
public function fail ($ exception )
199
204
{
@@ -216,6 +221,7 @@ public function fail($exception)
216
221
217
222
/**
218
223
* Re-queue the current job.
224
+ * @return string
219
225
*/
220
226
public function recreate ()
221
227
{
0 commit comments