mirror of
https://github.com/idanoo/laravel-resque.git
synced 2024-11-22 08:25:18 +00:00
48 lines
657 B
PHP
48 lines
657 B
PHP
|
<?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;
|
||
|
}
|
||
|
}
|