CakeFest 2024: The Official CakePHP Conference

ReflectionClass::isTrait

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

ReflectionClass::isTrait返回了是否是 trait

说明

public ReflectionClass::isTrait(): bool

检查 ReflectionClass 是否指向 trait。

参数

此函数没有参数。

返回值

如果是 trait 返回 true,否则返回 false

add a note

User Contributed Notes

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