Given a class instance, is it possible to determine if it implements a particular interface? As far as I know, there isn\'t a built-in function to do this directly. What opt
You can also do the following
public function yourMethod(YourInterface $objectSupposedToBeImplementing) { //..... }
It will throw an recoverable error if the $objectSupposedToBeImplementing does not implement YourInterface Interface.
$objectSupposedToBeImplementing
YourInterface