function textDump($num = 0) { $ret = parent::textDump($num); foreach ($this->units as $unit) { $ret .= $unit->textDump($num + 1); } return $ret; }