| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2.0185 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | 3 | public function findQueueable(string $class): ?Queueable |
|
| 25 | { |
||
| 26 | 3 | $this->reader ??= (new Factory())->create(); |
|
| 27 | |||
| 28 | 3 | $reflection = new \ReflectionClass($class); |
|
| 29 | |||
| 30 | 3 | if ($reflection->isInterface()) { |
|
| 31 | return null; |
||
| 32 | } |
||
| 33 | |||
| 34 | 3 | return $this->reader->firstClassMetadata($reflection, Queueable::class); |
|
| 35 | } |
||
| 37 |