code: public static function printVar($var)
      {
          if ($var instanceof Type) {
              // FIXME: Replace with schema printer call
              if ($var instanceof WrappingType) {
                  $var = $var->getWrappedType(true);
              }
  
              return 'GraphQLType: ' . $var->name;
          }
  
          if (is_object($var)) {
              return 'instance of ' . get_class($var) . ($var instanceof Countable ? '(' . count($var) . ')' : '');
          }
          if (is_array($var)) {
              return 'array(' . count($var) . ')';
          }
          if ($var === '') {
              return '(empty string)';
          }
          if (is_string($var)) {
              return "'" . addcslashes($var, "'") . "'";
          }
          if (is_bool($var)) {
              return $var ? 'true' : 'false';
          }
          if (is_scalar($var)) {
              return $var;
          }
          if ($var === null) {
              return 'null';
          }
  
          return gettype($var);
      }
docs: @param mixed $var
  
  @return string