| Conditions | 4 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 46 | private function getTraitConstructors(\ReflectionClass $class): ?\ReflectionMethod |
||
| 47 | { |
||
| 48 | foreach ($class->getTraits() as $trait) { |
||
| 49 | if ($constructor = $this->getConstructor($trait)) { |
||
| 50 | return $constructor; |
||
| 51 | } |
||
| 52 | |||
| 53 | if ($constructor = $this->getTraitConstructors($trait)) { |
||
| 54 | return $constructor; |
||
| 55 | } |
||
| 56 | } |
||
| 57 | |||
| 58 | return null; |
||
| 59 | } |
||
| 60 | } |