CakeFest 2024: The Official CakePHP Conference

ReflectionClass::isTrait

(PHP 5 >= 5.4.0, PHP 7, PHP 8)

ReflectionClass::isTraitトレイトであるかどうかを返す

説明

public ReflectionClass::isTrait(): bool

ReflectionClass が、トレイトを参照しているかを調べます。

パラメータ

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

戻り値

これがトレイトである場合に true、そうでない場合に false を返します。

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top