| Conditions | 4 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | protected function getConstructor(\ReflectionClass $class): ?\ReflectionMethod |
||
| 41 | { |
||
| 42 | if ($class->hasMethod(self::CONSTRUCTOR_NAME)) { |
||
| 43 | return $class->getMethod(self::CONSTRUCTOR_NAME); |
||
| 44 | } |
||
| 45 | |||
| 46 | if ($constructor = $this->getTraitConstructors($class)) { |
||
| 47 | return $constructor; |
||
| 48 | } |
||
| 49 | |||
| 50 | if ($parent = $class->getParentClass()) { |
||
| 51 | return $this->getConstructor($parent); |
||
| 52 | } |
||
| 53 | |||
| 54 | return null; |
||
| 55 | } |
||
| 76 |