ReflectionMethod::isConstructor

( excerpt from http://php.net/manual/en/reflectionmethod.isconstructor.php )

public function isConstructor(): bool;

Checks if the method is a constructor.

Returns

  • bool - TRUE if the method is a constructor, otherwise FALSE