/** Converts an ingredients quantity and units. This way combining of ingredients will be easier */ function convertToBaseUnits($scaling) { $this->quantity = Units::convertTo($this->quantity * $scaling, $this->unitMap, $this->unit, $this->solid, $this->unitSystem); $this->unitMap = $this->unit; }