« ReflectionMethod::isProtected
ReflectionMethod::setAccessible »

ReflectionMethod::isPublic

(PHP 5, PHP 7, PHP 8)

ReflectionMethod::isPublic — public メソッドであるかどうかを調べる

説明

public function ReflectionMethod::isPublic(): bool

public メソッドであるかどうかを調べます。

パラメータ

この関数にはパラメータはありません。

戻り値

public メソッドである場合に true、それ以外の場合に false を返します。

参考

関連キーワード:
ReflectionMethod   isPublic   isProtected   setAccessible   参考   isPrivate   private
関連する関数・ページ:
reflectionmethod.isprivate   reflectionmethod.isprotected   reflectionmethod.isfinal   reflectionmethod.setaccessible   reflectionmethod.isconstructor   reflectionmethod.export