(PHP 5, PHP 7, PHP 8)
ReflectionClass::implementsInterface — インターフェイスの実装を調べる
$interface
インターフェイスを実装しているかどうかを調べます。
interface
インターフェイスの名前。
成功した場合に true を、失敗した場合に false を返します。
true
false
ReflectionClass::implementsInterface() は、 interface がインターフェイスでない場合に ReflectionException をスローします。