(PHP 5, PHP 7, PHP 8)
ReflectionClass::implementsInterface — 实现接口
检查其是否实现了接口(interface)。
interface
接口(interface)的名称。
成功时返回 true
, 或者在失败时返回 false
。
如果 interface
不是接口,则
ReflectionClass::implementsInterface() 会抛出
ReflectionException。