original_string: public function sumSubtable(DataTable $subTable)
      {
          if ($this->isSubtableLoaded) {
              $thisSubTable = $this->getSubtable();
          } else {
              $this->warnIfSubtableAlreadyExists();
  
              $thisSubTable = new DataTable();
              $this->setSubtable($thisSubTable);
          }
          $columnOps = $subTable->getMetadata(DataTable::COLUMN_AGGREGATION_OPS_METADATA_NAME);
          $thisSubTable->setMetadata(DataTable::COLUMN_AGGREGATION_OPS_METADATA_NAME, $columnOps);
          $thisSubTable->addDataTable($subTable);
      }
code: public function sumSubtable(DataTable $subTable)
      {
          if ($this->isSubtableLoaded) {
              $thisSubTable = $this->getSubtable();
          } else {
              $this->warnIfSubtableAlreadyExists();
  
              $thisSubTable = new DataTable();
              $this->setSubtable($thisSubTable);
          }
          $columnOps = $subTable->getMetadata(DataTable::COLUMN_AGGREGATION_OPS_METADATA_NAME);
          $thisSubTable->setMetadata(DataTable::COLUMN_AGGREGATION_OPS_METADATA_NAME, $columnOps);
          $thisSubTable->addDataTable($subTable);
      }
code_tokens: public function sumSubtable ( DataTable $ subTable ) { if ( $ this -> isSubtableLoaded ) { $ thisSubTable = $ this -> getSubtable ( ) ; } else { $ this -> warnIfSubtableAlreadyExists ( ) ; $ thisSubTable = new DataTable ( ) ; $ this -> setSubtable ( $ thisSubTable ) ; } $ columnOps = $ subTable -> getMetadata ( DataTable :: COLUMN_AGGREGATION_OPS_METADATA_NAME ) ; $ thisSubTable -> setMetadata ( DataTable :: COLUMN_AGGREGATION_OPS_METADATA_NAME , $ columnOps ) ; $ thisSubTable -> addDataTable ( $ subTable ) ; }
docstring: Sums a DataTable to this row's subtable. If this row has no subtable a new
  one is created.
  
  See {@link Piwik\DataTable::addDataTable()} to learn how DataTables are summed.
  
  @param DataTable $subTable Table to sum to this row's subtable.
docstring_tokens: Sums a DataTable to this row s subtable . If this row has no subtable a new one is created .