initial commit

This commit is contained in:
Holger Reinhardt 2016-07-28 23:52:05 +02:00
parent 81d0771154
commit c563d0e4ae
7 changed files with 189 additions and 0 deletions

47
src/Job.php Normal file
View file

@ -0,0 +1,47 @@
<?php
namespace Hlgrrnhrdt\Resque;
/**
* Job
*
* @author Holger Reinhardt <hlgrrnhrdt@gmail.com>
*/
abstract class Job
{
/**
* @var string
*/
protected $queue = 'default';
/**
* @var array
*/
protected $arguments = [];
/**
* @return mixed
*/
public function queue()
{
return $this->queue;
}
/**
* @return array
*/
public function arguments()
{
return $this->arguments;
}
/**
* @param string $queue
*
* @return Job
*/
public function onQueue($queue)
{
$this->queue = $queue;
return $this;
}
}