original_string: protected function _addDefaultSelectTypes()
      {
          $typeMap = $this->getTypeMap()->getDefaults();
          $select = $this->clause('select');
          $types = [];
  
          foreach ($select as $alias => $value) {
              if (isset($typeMap[$alias])) {
                  $types[$alias] = $typeMap[$alias];
                  continue;
              }
              if (is_string($value) && isset($typeMap[$value])) {
                  $types[$alias] = $typeMap[$value];
              }
              if ($value instanceof TypedResultInterface) {
                  $types[$alias] = $value->getReturnType();
              }
          }
          $this->getSelectTypeMap()->addDefaults($types);
      }
code: protected function _addDefaultSelectTypes()
      {
          $typeMap = $this->getTypeMap()->getDefaults();
          $select = $this->clause('select');
          $types = [];
  
          foreach ($select as $alias => $value) {
              if (isset($typeMap[$alias])) {
                  $types[$alias] = $typeMap[$alias];
                  continue;
              }
              if (is_string($value) && isset($typeMap[$value])) {
                  $types[$alias] = $typeMap[$value];
              }
              if ($value instanceof TypedResultInterface) {
                  $types[$alias] = $value->getReturnType();
              }
          }
          $this->getSelectTypeMap()->addDefaults($types);
      }
code_tokens: protected function _addDefaultSelectTypes ( ) { $ typeMap = $ this -> getTypeMap ( ) -> getDefaults ( ) ; $ select = $ this -> clause ( 'select' ) ; $ types = [ ] ; foreach ( $ select as $ alias => $ value ) { if ( isset ( $ typeMap [ $ alias ] ) ) { $ types [ $ alias ] = $ typeMap [ $ alias ] ; continue ; } if ( is_string ( $ value ) && isset ( $ typeMap [ $ value ] ) ) { $ types [ $ alias ] = $ typeMap [ $ value ] ; } if ( $ value instanceof TypedResultInterface ) { $ types [ $ alias ] = $ value -> getReturnType ( ) ; } } $ this -> getSelectTypeMap ( ) -> addDefaults ( $ types ) ; }
docstring: Sets the default types for converting the fields in the select clause
  
  @return void
docstring_tokens: Sets the default types for converting the fields in the select clause