ReflectionClass::getConstructor

( excerpt from http://php.net/manual/en/reflectionclass.getconstructor.php )

public function getConstructor(): ?ReflectionMethod;

Gets the constructor of the reflected class.

Returns

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