ReflectionMethod::isConstructor

(PHP 5, PHP 7, PHP 8)

ReflectionMethod::isConstructor判斷方法是否是構(gòu)造方法

說明

public ReflectionMethod::isConstructor(): bool

判斷方法是否是構(gòu)造方法

參數(shù)

此函數(shù)沒有參數(shù)。

返回值

如果是構(gòu)造方法返回 true,否則返回 false

參見