(PHP 5, PHP 7, PHP 8)
ReflectionClass::implementsInterface — Implements interface
public ReflectionClass::implementsInterface(ReflectionClass|string $interface): bool
Checks whether it implements an interface.
interfaceThe interface name.
ReflectionClass::implementsInterface() throws an ReflectionException if interface is not an interface.
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/reflectionclass.implementsinterface.php