ReflectionClass::implementsInterface

(PHP 5, PHP 7)

ReflectionClass::implementsInterfaceImplements interface

Descrierea

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

Checks whether it implements an interface.

Parametri

interface

The interface name.

Valorile întoarse

Întoarce valoarea true în cazul succesului sau false în cazul eșecului.

Erori/Excepții

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

A se vedea și