ReflectionMethod::isConstructor()
(PHP 5, PHP 7)
判断方法是否是构造方法
说明
public ReflectionMethod::isConstructor(void) : bool
判断方法是否是构造方法
参数
此函数没有参数。
返回值
如果是构造方法返回TRUE
,否则返回FALSE
参见
- ReflectionMethod::__construct() ReflectionMethod 的构造函数
- ReflectionMethod::isAbstract() 判断方法是否是抽象方法
- ReflectionMethod::isDestructor() 判断方法是否是析构方法