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();
    }
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();
    }
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 ( ) ; }
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
Allows setting default types when chaining query