value = (float) str_replace(['$', ','], '', $value); } public function getValue(): float { return (float) str_replace(['$', ','], '', $this->value); } public function __toString(): string { return (string) $this->getValue(); } }