original_string: public function defaultTypes(array $types = null)
      {
          deprecationWarning(
              'TypeMapTrait::defaultTypes() is deprecated. ' .
              'Use TypeMapTrait::setDefaultTypes()/getDefaultTypes() instead.'
          );
          if ($types !== null) {
              return $this->setDefaultTypes($types);
          }
  
          return $this->getDefaultTypes();
      }
code: public function defaultTypes(array $types = null)
      {
          deprecationWarning(
              'TypeMapTrait::defaultTypes() is deprecated. ' .
              'Use TypeMapTrait::setDefaultTypes()/getDefaultTypes() instead.'
          );
          if ($types !== null) {
              return $this->setDefaultTypes($types);
          }
  
          return $this->getDefaultTypes();
      }
code_tokens: public function defaultTypes ( array $ types = null ) { deprecationWarning ( 'TypeMapTrait::defaultTypes() is deprecated. ' . 'Use TypeMapTrait::setDefaultTypes()/getDefaultTypes() instead.' ) ; if ( $ types !== null ) { return $ this -> setDefaultTypes ( $ types ) ; } return $ this -> getDefaultTypes ( ) ; }
docstring: Allows setting default types when chaining query
  
  @deprecated 3.4.0 Use setDefaultTypes()/getDefaultTypes() instead.
  @param array|null $types The array of types to set.
  @return $this|array
docstring_tokens: Allows setting default types when chaining query