ReflectionClass::getConstructor

( excerpt from http://php

Description

public function getConstructor(): ?ReflectionMethod;

net/manual/en/reflectionclass.getconstructor.php )

Gets the constructor of the reflected class.

Return Values

  • mixed - A ReflectionMethod object reflecting the class' constructor, or NULL if the class has no constructor.