Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
24 | 1 | public function putJob( |
|
25 | JobInterface $job, |
||
26 | int $priority = PheanstalkInterface::DEFAULT_PRIORITY, |
||
27 | int $delay = PheanstalkInterface::DEFAULT_DELAY, |
||
28 | int $ttr = PheanstalkInterface::DEFAULT_TTR |
||
29 | ): void { |
||
30 | 1 | if (isset($this->beforePut)) { |
|
31 | 1 | ($this->beforePut)($job); |
|
32 | } |
||
33 | |||
34 | 1 | $this->put( |
|
35 | 1 | $this->jobFactory->saveToJson($job), |
|
36 | $priority, |
||
37 | $delay, |
||
38 | $ttr |
||
39 | ); |
||
42 |