protected function getDivisor($row)
    {
        if (!is_null($this->totalValueUsedAsDivisor)) {
            return $this->totalValueUsedAsDivisor;
        } elseif ($this->getDivisorFromSummaryRow) {
            $summaryRow = $this->table->getRowFromId(DataTable::ID_SUMMARY_ROW);
            return $summaryRow->getColumn($this->columnNameUsedAsDivisor);
        } else {
            return $row->getColumn($this->columnNameUsedAsDivisor);
        }
    }
protected function getDivisor($row)
    {
        if (!is_null($this->totalValueUsedAsDivisor)) {
            return $this->totalValueUsedAsDivisor;
        } elseif ($this->getDivisorFromSummaryRow) {
            $summaryRow = $this->table->getRowFromId(DataTable::ID_SUMMARY_ROW);
            return $summaryRow->getColumn($this->columnNameUsedAsDivisor);
        } else {
            return $row->getColumn($this->columnNameUsedAsDivisor);
        }
    }
protected function getDivisor ( $ row ) { if ( ! is_null ( $ this -> totalValueUsedAsDivisor ) ) { return $ this -> totalValueUsedAsDivisor ; } elseif ( $ this -> getDivisorFromSummaryRow ) { $ summaryRow = $ this -> table -> getRowFromId ( DataTable :: ID_SUMMARY_ROW ) ; return $ summaryRow -> getColumn ( $ this -> columnNameUsedAsDivisor ) ; } else { return $ row -> getColumn ( $ this -> columnNameUsedAsDivisor ) ; } }
Returns the divisor to use when calculating the new column value. Can
be overridden by descendent classes to customize behavior.

@param Row $row The row being modified.
@return int|float
Returns the divisor to use when calculating the new column value . Can be overridden by descendent classes to customize behavior .