public static function hasInterface($objectOrClass, string $interfaceClassName): bool
    {
        return in_array($interfaceClassName, self::getInterfaces($objectOrClass));
    }
public static function hasInterface($objectOrClass, string $interfaceClassName): bool
    {
        return in_array($interfaceClassName, self::getInterfaces($objectOrClass));
    }
public static function hasInterface ( $ objectOrClass , string $ interfaceClassName ) : bool { return in_array ( $ interfaceClassName , self :: getInterfaces ( $ objectOrClass ) ) ; }
Has interface.

@param object|string $objectOrClass
@param string $interfaceClassName
@return bool
Has interface .