original_string: public function now($type = 'datetime')
      {
          if ($type === 'datetime') {
              return $this->_build('NOW')->setReturnType('datetime');
          }
          if ($type === 'date') {
              return $this->_build('CURRENT_DATE')->setReturnType('date');
          }
          if ($type === 'time') {
              return $this->_build('CURRENT_TIME')->setReturnType('time');
          }
      }
code: public function now($type = 'datetime')
      {
          if ($type === 'datetime') {
              return $this->_build('NOW')->setReturnType('datetime');
          }
          if ($type === 'date') {
              return $this->_build('CURRENT_DATE')->setReturnType('date');
          }
          if ($type === 'time') {
              return $this->_build('CURRENT_TIME')->setReturnType('time');
          }
      }
code_tokens: public function now ( $ type = 'datetime' ) { if ( $ type === 'datetime' ) { return $ this -> _build ( 'NOW' ) -> setReturnType ( 'datetime' ) ; } if ( $ type === 'date' ) { return $ this -> _build ( 'CURRENT_DATE' ) -> setReturnType ( 'date' ) ; } if ( $ type === 'time' ) { return $ this -> _build ( 'CURRENT_TIME' ) -> setReturnType ( 'time' ) ; } }
docstring: Returns a FunctionExpression representing a call that will return the current
  date and time. By default it returns both date and time, but you can also
  make it generate only the date or only the time.
  
  @param string $type (datetime|date|time)
  @return \Cake\Database\Expression\FunctionExpression
docstring_tokens: Returns a FunctionExpression representing a call that will return the current date and time . By default it returns both date and time but you can also make it generate only the date or only the time .