ReflectionClass::implementsInterface

(PHP 5, PHP 7)

ReflectionClass::implementsInterfaceImplements interface

Descrição

public ReflectionClass::implementsInterface ( ReflectionClass|string $interface ) : bool

Checks whether it implements an interface.

Parâmetros

interface

The interface name.

Valor Retornado

Retorna true em caso de sucesso ou false em caso de falha.

Erros

ReflectionClass::implementsInterface() throws an ReflectionException if interface is not an interface.

Veja Também