| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 14 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | 2 | public function declare(): void |
|
| 14 | { |
||
| 15 | 2 | $this->namespace->addUse(JobHandler::class); |
|
| 16 | 2 | $this->class->setExtends(JobHandler::class); |
|
| 17 | 2 | $this->class->setFinal(); |
|
| 18 | |||
| 19 | 2 | $method = $this->class |
|
| 20 | 2 | ->addMethod('invoke') |
|
| 21 | 2 | ->setPublic() |
|
| 22 | 2 | ->setReturnType('void'); |
|
| 23 | |||
| 24 | 2 | $method->addParameter('id') |
|
| 25 | 2 | ->setType('string'); |
|
| 26 | |||
| 27 | 2 | $method->addParameter('payload') |
|
| 28 | 2 | ->setType('array'); |
|
| 29 | |||
| 30 | 2 | $method->addParameter('headers') |
|
| 31 | 2 | ->setType('array'); |
|
| 32 | } |
||
| 41 |