| Conditions | 4 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 61 | private function getTraitConstructors(\ReflectionClass $class): ?\ReflectionMethod |
||
| 62 | { |
||
| 63 | foreach ($class->getTraits() as $trait) { |
||
| 64 | if ($constructor = $this->getConstructor($trait)) { |
||
| 65 | return $constructor; |
||
| 66 | } |
||
| 67 | |||
| 68 | if ($constructor = $this->getTraitConstructors($trait)) { |
||
| 69 | return $constructor; |
||
| 70 | } |
||
| 71 | } |
||
| 72 | |||
| 73 | return null; |
||
| 74 | } |
||
| 76 |