original_string: public function addSummaryRow(Row $row)
      {
          $this->summaryRow = $row;
  
          // add summary row to index
          if (!$this->indexNotUpToDate
              && $this->rebuildIndexContinuously
          ) {
              $label = $row->getColumn('label');
              if ($label !== false) {
                  $this->rowsIndexByLabel[$label] = self::ID_SUMMARY_ROW;
              }
          }
  
          return $row;
      }
code: public function addSummaryRow(Row $row)
      {
          $this->summaryRow = $row;
  
          // add summary row to index
          if (!$this->indexNotUpToDate
              && $this->rebuildIndexContinuously
          ) {
              $label = $row->getColumn('label');
              if ($label !== false) {
                  $this->rowsIndexByLabel[$label] = self::ID_SUMMARY_ROW;
              }
          }
  
          return $row;
      }
code_tokens: public function addSummaryRow ( Row $ row ) { $ this -> summaryRow = $ row ; // add summary row to index if ( ! $ this -> indexNotUpToDate && $ this -> rebuildIndexContinuously ) { $ label = $ row -> getColumn ( 'label' ) ; if ( $ label !== false ) { $ this -> rowsIndexByLabel [ $ label ] = self :: ID_SUMMARY_ROW ; } } return $ row ; }
docstring: Sets the summary row.
  
  _Note: A DataTable can have only one summary row._
  
  @param Row $row
  @return Row Returns `$row`.
docstring_tokens: Sets the summary row .