original_string: public static function implementsInterface($value, string $interface): bool
      {
          if (!is_object($value)) {
              if (!(static::classExists($value) || static::interfaceExists($value))) {
                  return false;
              }
              $value = (string) $value;
          }
  
          $reflection = new ReflectionClass($value);
  
          return $reflection->implementsInterface($interface);
      }
code: public static function implementsInterface($value, string $interface): bool
      {
          if (!is_object($value)) {
              if (!(static::classExists($value) || static::interfaceExists($value))) {
                  return false;
              }
              $value = (string) $value;
          }
  
          $reflection = new ReflectionClass($value);
  
          return $reflection->implementsInterface($interface);
      }
code_tokens: public static function implementsInterface ( $ value , string $ interface ) : bool { if ( ! is_object ( $ value ) ) { if ( ! ( static :: classExists ( $ value ) || static :: interfaceExists ( $ value ) ) ) { return false ; } $ value = ( string ) $ value ; } $ reflection = new ReflectionClass ( $ value ) ; return $ reflection -> implementsInterface ( $ interface ) ; }
docstring: Checks if value implements a given interface
  
  @param mixed  $value     The value
  @param string $interface The fully qualified interface name
  
  @return bool
docstring_tokens: Checks if value implements a given interface