original_string: public function set($field, $value = UNDEFINED)
      {
          if ($value === false) {
              throw $this->exception('Value "false" is not supported by SQL')
                  ->addMoreInfo('field', $field);
          }
          if (is_array($field)) {
              foreach ($field as $key => $value) {
                  $this->set($key, $value);
              }
  
              return $this;
          }
  
          if ($value === UNDEFINED) {
              throw $this->exception('Specify value when calling set()');
          }
  
          $this->args['set'][$field] = $value;
  
          return $this;
      }
code: public function set($field, $value = UNDEFINED)
      {
          if ($value === false) {
              throw $this->exception('Value "false" is not supported by SQL')
                  ->addMoreInfo('field', $field);
          }
          if (is_array($field)) {
              foreach ($field as $key => $value) {
                  $this->set($key, $value);
              }
  
              return $this;
          }
  
          if ($value === UNDEFINED) {
              throw $this->exception('Specify value when calling set()');
          }
  
          $this->args['set'][$field] = $value;
  
          return $this;
      }
code_tokens: public function set ( $ field , $ value = UNDEFINED ) { if ( $ value === false ) { throw $ this -> exception ( 'Value "false" is not supported by SQL' ) -> addMoreInfo ( 'field' , $ field ) ; } if ( is_array ( $ field ) ) { foreach ( $ field as $ key => $ value ) { $ this -> set ( $ key , $ value ) ; } return $ this ; } if ( $ value === UNDEFINED ) { throw $ this -> exception ( 'Specify value when calling set()' ) ; } $ this -> args [ 'set' ] [ $ field ] = $ value ; return $ this ; }
docstring: Sets field value for INSERT or UPDATE statements.
  
  @param string $field Name of the field
  @param mixed  $value Value of the field
  
  @return $this
docstring_tokens: Sets field value for INSERT or UPDATE statements .