code: public function determineFormatClass()
      {
          if (isset($this->fieldSchema)) {
              switch ($this->fieldSchema->type) {
                  case 'date':
                      return DateType::className();
                  break;
              }
              switch ($this->fieldSchema->dbType) {
                  case 'tinyint(1)':
                      return BinaryType::className();
                  break;
              }
          }
  
          return TextType::className();
      }
docs: [[@doctodo method_description:determineFormatClass]].
  
  @return [[@doctodo return_type:determineFormatClass]] [[@doctodo return_description:determineFormatClass]]