| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2.032 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 47 | 1 | public function getJobsFromCommand(string $command, Reader $reader): array |
|
| 48 | { |
||
| 49 | 1 | $annotation = $reader->getClassAnnotation(new ReflectionClass($command), Job::class); |
|
| 50 | |||
| 51 | if (!($annotation instanceof Job)) { |
||
| 52 | return []; |
||
| 53 | 1 | } |
|
| 54 | 1 | ||
| 55 | return $annotation->getJobs(); |
||
| 56 | } |
||
| 57 | |||
| 81 |