id; } public function getName(): string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getValue(): mixed { return $this->value; } static function parseValue(mixed $value, string $type): mixed { return match ($type) { NumberType::class => intval($value), CheckboxType::class => boolval($value), default => $value, }; } public function setValue(mixed $value): self { $this->value = $value; return $this; } }