original_string: public function getDefault(string $type)
      {
          switch ($type) {
              case self::TYPE_NULL:
                  return null;
              case self::TYPE_BOOLEAN:
                  return false;
              case self::TYPE_INTEGER:
              case self::TYPE_FLOAT:
                  return 0;
              case self::TYPE_STRING:
              case self::TYPE_BINARY:
                  return '';
              case self::TYPE_ARRAY:
              case self::TYPE_OBJECT:
                  return [];
          }
  
          throw new InvalidValueException("Invalid value type: $type");
      }
code: public function getDefault(string $type)
      {
          switch ($type) {
              case self::TYPE_NULL:
                  return null;
              case self::TYPE_BOOLEAN:
                  return false;
              case self::TYPE_INTEGER:
              case self::TYPE_FLOAT:
                  return 0;
              case self::TYPE_STRING:
              case self::TYPE_BINARY:
                  return '';
              case self::TYPE_ARRAY:
              case self::TYPE_OBJECT:
                  return [];
          }
  
          throw new InvalidValueException("Invalid value type: $type");
      }
code_tokens: public function getDefault ( string $ type ) { switch ( $ type ) { case self :: TYPE_NULL : return null ; case self :: TYPE_BOOLEAN : return false ; case self :: TYPE_INTEGER : case self :: TYPE_FLOAT : return 0 ; case self :: TYPE_STRING : case self :: TYPE_BINARY : return '' ; case self :: TYPE_ARRAY : case self :: TYPE_OBJECT : return [ ] ; } throw new InvalidValueException ( "Invalid value type: $type" ) ; }
docstring: Return the default value for a given type.
  
  @param string $type
  @return mixed
  @throws InvalidValueException
docstring_tokens: Return the default value for a given type .