ReflectionClass
PHP Manual

ReflectionClass::implementsInterface

(PHP 5)

ReflectionClass::implementsInterfaceImplements interface

说明

public bool ReflectionClass::implementsInterface ( string $interface )

Checks whether it implements an interface.

参数

interface

The interface name.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE.

参见


ReflectionClass
PHP Manual