ReflectionMethod::isConstructor
(PHP 5, PHP 7, PHP 8)
ReflectionMethod::isConstructor — 判断方法是否是构造方法
参数
此函数没有参数。
参见
- ReflectionMethod::__construct() - 构造 ReflectionMethod
- ReflectionMethod::isAbstract() - 判断方法是否是抽象方法
- ReflectionMethod::isDestructor() - 判断方法是否是析构方法