| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 20 | 1 | public function putJob( |
|
| 21 | JobInterface $job, |
||
| 22 | int $priority = PheanstalkInterface::DEFAULT_PRIORITY, |
||
| 23 | int $delay = PheanstalkInterface::DEFAULT_DELAY, |
||
| 24 | int $ttr = PheanstalkInterface::DEFAULT_TTR |
||
| 25 | ): void { |
||
| 26 | 1 | if (isset($this->beforePut)) { |
|
| 27 | 1 | ($this->beforePut)($job); |
|
| 28 | } |
||
| 29 | |||
| 30 | 1 | $this->commandBus->handle($job); |
|
| 31 | 1 | } |
|
| 33 |