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