ReflectionClass::implementsInterface
ReflectionClass::implementsInterface
(PHP 5, PHP 7)
ReflectionClass::implementsInterface — Implements interface
Description
public bool ReflectionClass::implementsInterface ( string $interface )
Checks whether it implements an interface.
Parameters
-
interface
-
The interface name.
Return Values
Returns TRUE
on success or FALSE
on failure.
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
© 1997–2017 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://secure.php.net/manual/en/reflectionclass.implementsinterface.php