ReflectionClass::implementsInterface

(PHP 5, PHP 7, PHP 8)

ReflectionClass::implementsInterface接口的實現(xiàn)

說明

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

檢查它是否實現(xiàn)了一個接口(interface)。

參數(shù)

interface

接口(interface)的名稱。

返回值

成功時返回 true, 或者在失敗時返回 false。

參見