ReflectionClass::implementsInterface
(PHP 5)
ReflectionClass::implementsInterface — 接口的实现
说明
public bool ReflectionClass::implementsInterface
( string
$interface
)检查它是否实现了一个接口(interface)。
参数
-
interface -
接口(interface)的名称。
返回值
成功时返回 TRUE, 或者在失败时返回 FALSE。
参见
- ReflectionClass::isInterface() - 检查类是否是一个接口(interface)
- ReflectionClass::isSubclassOf() - 检查是否为一个子类
- interface_exists() - 检查接口是否已被定义
- Object Interfaces
There are no user contributed notes for this page.
