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;
    }
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;
    }
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 ; }
Sets the summary row.

_Note: A DataTable can have only one summary row._

@param Row $row
@return Row Returns `$row`.
Sets the summary row .