ReflectionClass::implementsInterface

(PHP 5, PHP 7, PHP 8)

ReflectionClass::implementsInterfaceImplements interface

Descrizione

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

Checks whether it implements an interface.

Elenco dei parametri

interface

The interface name.

Valori restituiti

Restituisce true in caso di successo, false in caso di fallimento.

Errori/Eccezioni

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

Vedere anche: