ReflectionClass::implementsInterface
(PHP 5, PHP 7, PHP 8)
ReflectionClass::implementsInterface — Implements interface
Description
Checks whether it implements an interface.
Parameters
interfaceThe interface name.
Errors/Exceptions
ReflectionClass::implementsInterface() throws an ReflectionException if interface is not an interface.
See Also
- ReflectionClass::isInterface() - Checks if the class is an interface
- ReflectionClass::isSubclassOf() - Checks if a subclass
- interface_exists() - Checks if the interface has been defined
- Object Interfaces
↑ and ↓ to navigate • Enter to select • Esc to close • / to open