public function ProductionUnit($name, $cost, $nextcostmodifier, $prerequisite, $amount, $id, $type) { parent::Building($name, $cost, $nextcostmodifier, $prerequisite, $amount, $id); $this->_type = (string) $type; }