original_string: public function types(array $types = null)
      {
          deprecationWarning(
              'TypeMap::types() is deprecated. ' .
              'Use TypeMap::setTypes()/getTypes() instead.'
          );
          if ($types !== null) {
              return $this->setTypes($types);
          }
  
          return $this->getTypes();
      }
code: public function types(array $types = null)
      {
          deprecationWarning(
              'TypeMap::types() is deprecated. ' .
              'Use TypeMap::setTypes()/getTypes() instead.'
          );
          if ($types !== null) {
              return $this->setTypes($types);
          }
  
          return $this->getTypes();
      }
code_tokens: public function types ( array $ types = null ) { deprecationWarning ( 'TypeMap::types() is deprecated. ' . 'Use TypeMap::setTypes()/getTypes() instead.' ) ; if ( $ types !== null ) { return $ this -> setTypes ( $ types ) ; } return $ this -> getTypes ( ) ; }
docstring: Sets a map of fields and their associated types for single-use.
  
  If called with no arguments it will return the currently configured types.
  
  ### Example
  
  ```
  $query->types(['created' => 'time']);
  ```
  
  This method will replace all the existing type maps with the ones provided.
  
  @deprecated 3.4.0 Use setTypes()/getTypes() instead.
  @param array|null $types associative array where keys are field names and values
  are the correspondent type.
  @return $this|array
docstring_tokens: Sets a map of fields and their associated types for single - use .