getID(); } /** * @return string */ public function getUnit(): ?string { return $this->unit; } /** * @param string $unit * * @return MeasurementUnit */ public function setUnit(?string $unit): self { $this->unit = $unit; return $this; } public function isInteger(): bool { return $this->is_integer; } /** * @param bool $isInteger * @return MeasurementUnit */ public function setIsInteger(bool $isInteger): self { $this->is_integer = $isInteger; return $this; } public function isUseSIPrefix(): bool { return $this->use_si_prefix; } /** * @param bool $usesSIPrefixes * @return MeasurementUnit */ public function setUseSIPrefix(bool $usesSIPrefixes): self { $this->use_si_prefix = $usesSIPrefixes; return $this; } }