| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | 8 | public function isQueueable($object): bool |
|
| 23 | { |
||
| 24 | 8 | $reflection = new \ReflectionClass($object); |
|
| 25 | |||
| 26 | 8 | if ($reflection->implementsInterface(QueueableInterface::class)) { |
|
| 27 | 3 | return true; |
|
| 28 | } |
||
| 29 | |||
| 30 | 5 | return $this->reader->firstClassMetadata($reflection, Queueable::class) !== null; |
|
| 31 | } |
||
| 52 |