original_string: public function update( $options = [] )
      {
  
          if ( is_null( $this->row ) ) {
              return $this->reset();
          }
  
          $mergeOptions = array_replace_recursive( $this->_value, $options );
  
          $result = WpOption::updateOrCreate(
              ['option_name' => $this->optionsName],
              ['option_value' => json_encode( $mergeOptions )]
          );
  
  
          $this->_value = (array) $mergeOptions;
  
          return $result;
  
      }
code: public function update( $options = [] )
      {
  
          if ( is_null( $this->row ) ) {
              return $this->reset();
          }
  
          $mergeOptions = array_replace_recursive( $this->_value, $options );
  
          $result = WpOption::updateOrCreate(
              ['option_name' => $this->optionsName],
              ['option_value' => json_encode( $mergeOptions )]
          );
  
  
          $this->_value = (array) $mergeOptions;
  
          return $result;
  
      }
code_tokens: public function update ( $ options = [ ] ) { if ( is_null ( $ this -> row ) ) { return $ this -> reset ( ) ; } $ mergeOptions = array_replace_recursive ( $ this -> _value , $ options ) ; $ result = WpOption :: updateOrCreate ( [ 'option_name' => $ this -> optionsName ] , [ 'option_value' => json_encode ( $ mergeOptions ) ] ) ; $ this -> _value = ( array ) $ mergeOptions ; return $ result ; }
docstring: Update a branch of options.
  
  @param array $options
  
  @return false|int
docstring_tokens: Update a branch of options .