mirror of
https://github.com/idanoo/laravel-resque.git
synced 2025-07-02 19:42:15 +00:00
Some refinements
This commit is contained in:
parent
7bb3c9ef85
commit
b60fb0d712
4 changed files with 110 additions and 13 deletions
13
src/Job.php
13
src/Job.php
|
@ -8,15 +8,20 @@ namespace Hlgrrnhrdt\Resque;
|
|||
*/
|
||||
abstract class Job
|
||||
{
|
||||
/**
|
||||
* @var \Resque_Job
|
||||
*/
|
||||
public $job;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $queue = 'default';
|
||||
public $queue = 'default';
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $arguments = [];
|
||||
public $args = [];
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
|
@ -31,7 +36,7 @@ abstract class Job
|
|||
*/
|
||||
public function arguments()
|
||||
{
|
||||
return $this->arguments;
|
||||
return $this->$args;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -44,4 +49,6 @@ abstract class Job
|
|||
$this->queue = $queue;
|
||||
return $this;
|
||||
}
|
||||
|
||||
abstract public function perform();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue