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