original_string: public function getType()
      {
          if (!empty($this->type)) {
              return $this->type;
          }
  
          if ($this->getDbColumnJoin()) {
              // best guess
              return self::TYPE_TEXT;
          }
  
          if ($this->getEnumColumnValues()) {
              // best guess
              return self::TYPE_ENUM;
          }
  
          if (!empty($this->columnType)) {
              // best guess
              $type = strtolower($this->columnType);
              if (strpos($type, 'datetime') !== false) {
                  return self::TYPE_DATETIME;
              } elseif (strpos($type, 'timestamp') !== false) {
                  return self::TYPE_TIMESTAMP;
              } elseif (strpos($type, 'date') !== false) {
                  return self::TYPE_DATE;
              } elseif (strpos($type, 'time') !== false) {
                  return self::TYPE_TIME;
              } elseif (strpos($type, 'float') !== false) {
                  return self::TYPE_FLOAT;
              } elseif (strpos($type, 'decimal') !== false) {
                  return self::TYPE_FLOAT;
              } elseif (strpos($type, 'int') !== false) {
                  return self::TYPE_NUMBER;
              } elseif (strpos($type, 'binary') !== false) {
                  return self::TYPE_BINARY;
              }
          }
  
          return self::TYPE_TEXT;
      }
code: public function getType()
      {
          if (!empty($this->type)) {
              return $this->type;
          }
  
          if ($this->getDbColumnJoin()) {
              // best guess
              return self::TYPE_TEXT;
          }
  
          if ($this->getEnumColumnValues()) {
              // best guess
              return self::TYPE_ENUM;
          }
  
          if (!empty($this->columnType)) {
              // best guess
              $type = strtolower($this->columnType);
              if (strpos($type, 'datetime') !== false) {
                  return self::TYPE_DATETIME;
              } elseif (strpos($type, 'timestamp') !== false) {
                  return self::TYPE_TIMESTAMP;
              } elseif (strpos($type, 'date') !== false) {
                  return self::TYPE_DATE;
              } elseif (strpos($type, 'time') !== false) {
                  return self::TYPE_TIME;
              } elseif (strpos($type, 'float') !== false) {
                  return self::TYPE_FLOAT;
              } elseif (strpos($type, 'decimal') !== false) {
                  return self::TYPE_FLOAT;
              } elseif (strpos($type, 'int') !== false) {
                  return self::TYPE_NUMBER;
              } elseif (strpos($type, 'binary') !== false) {
                  return self::TYPE_BINARY;
              }
          }
  
          return self::TYPE_TEXT;
      }
code_tokens: public function getType ( ) { if ( ! empty ( $ this -> type ) ) { return $ this -> type ; } if ( $ this -> getDbColumnJoin ( ) ) { // best guess return self :: TYPE_TEXT ; } if ( $ this -> getEnumColumnValues ( ) ) { // best guess return self :: TYPE_ENUM ; } if ( ! empty ( $ this -> columnType ) ) { // best guess $ type = strtolower ( $ this -> columnType ) ; if ( strpos ( $ type , 'datetime' ) !== false ) { return self :: TYPE_DATETIME ; } elseif ( strpos ( $ type , 'timestamp' ) !== false ) { return self :: TYPE_TIMESTAMP ; } elseif ( strpos ( $ type , 'date' ) !== false ) { return self :: TYPE_DATE ; } elseif ( strpos ( $ type , 'time' ) !== false ) { return self :: TYPE_TIME ; } elseif ( strpos ( $ type , 'float' ) !== false ) { return self :: TYPE_FLOAT ; } elseif ( strpos ( $ type , 'decimal' ) !== false ) { return self :: TYPE_FLOAT ; } elseif ( strpos ( $ type , 'int' ) !== false ) { return self :: TYPE_NUMBER ; } elseif ( strpos ( $ type , 'binary' ) !== false ) { return self :: TYPE_BINARY ; } } return self :: TYPE_TEXT ; }
docstring: Returns the type of the dimension which defines what kind of value this dimension stores.
  @return string
  @api since Piwik 3.2.0
docstring_tokens: Returns the type of the dimension which defines what kind of value this dimension stores .