original_string: public function update($table, array $data, array $conditions = [], $types = [])
      {
          return $this->getDisconnectRetry()->run(function () use ($table, $data, $conditions, $types) {
              return $this->newQuery()->update($table)
                  ->set($data, $types)
                  ->where($conditions, $types)
                  ->execute();
          });
      }
code: public function update($table, array $data, array $conditions = [], $types = [])
      {
          return $this->getDisconnectRetry()->run(function () use ($table, $data, $conditions, $types) {
              return $this->newQuery()->update($table)
                  ->set($data, $types)
                  ->where($conditions, $types)
                  ->execute();
          });
      }
code_tokens: public function update ( $ table , array $ data , array $ conditions = [ ] , $ types = [ ] ) { return $ this -> getDisconnectRetry ( ) -> run ( function ( ) use ( $ table , $ data , $ conditions , $ types ) { return $ this -> newQuery ( ) -> update ( $ table ) -> set ( $ data , $ types ) -> where ( $ conditions , $ types ) -> execute ( ) ; } ) ; }
docstring: Executes an UPDATE statement on the specified table.
  
  @param string $table the table to update rows from
  @param array $data values to be updated
  @param array $conditions conditions to be set for update statement
  @param array $types list of associative array containing the types to be used for casting
  @return \Cake\Database\StatementInterface
docstring_tokens: Executes an UPDATE statement on the specified table .