original_string: public static function getTypes()
      {
          $typesList = [];
          foreach (Yii::$app->db->getTableSchema(static::tableName())->columns['type']->enumValues as $type) {
              $typesList[$type] = MeasureHelper::t($type);
          }
          return $typesList;
      }
code: public static function getTypes()
      {
          $typesList = [];
          foreach (Yii::$app->db->getTableSchema(static::tableName())->columns['type']->enumValues as $type) {
              $typesList[$type] = MeasureHelper::t($type);
          }
          return $typesList;
      }
code_tokens: public static function getTypes ( ) { $ typesList = [ ] ; foreach ( Yii :: $ app -> db -> getTableSchema ( static :: tableName ( ) ) -> columns [ 'type' ] -> enumValues as $ type ) { $ typesList [ $ type ] = MeasureHelper :: t ( $ type ) ; } return $ typesList ; }
docstring: Get list of measure types.
  @return array of types in the next format `'TypeName' => 'Translated type name'`
docstring_tokens: Get list of measure types .