Added single argument setter to jobs
This commit is contained in:
parent
875eeaf4d4
commit
0ea81b8f69
1 changed files with 7 additions and 2 deletions
|
@ -20,7 +20,7 @@ abstract class AbstractJob
|
|||
const QUERY = 'query';
|
||||
const STATE = 'state';
|
||||
|
||||
protected $arguments;
|
||||
protected $arguments = [];
|
||||
|
||||
public function prepare()
|
||||
{
|
||||
|
@ -61,7 +61,12 @@ abstract class AbstractJob
|
|||
return isset($this->arguments[$key]);
|
||||
}
|
||||
|
||||
public function setArguments($arguments)
|
||||
public function setArgument($key, $value)
|
||||
{
|
||||
$this->arguments[$key] = $value;
|
||||
}
|
||||
|
||||
public function setArguments(array $arguments)
|
||||
{
|
||||
$this->arguments = $arguments;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue