public function __construct($quantity, $unit) { $this->quantity = $quantity; $this->measurementUnit = $unit; }