Added single argument setter to jobs

This commit is contained in:
Marcin Kurczewski 2014-05-06 18:09:53 +02:00
parent 875eeaf4d4
commit 0ea81b8f69

View file

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