Some refinements

This commit is contained in:
Holger Reinhardt 2016-07-29 09:17:13 +02:00
parent 7bb3c9ef85
commit b60fb0d712
4 changed files with 110 additions and 13 deletions

View file

@ -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();
}