generateFormId($route, $method); return new self($formId); } public static function fromString(string $value): self { return new self($value); } public function toString(): string { return $this->value; } public function __toString(): string { return $this->value; } public function equals(self $other): bool { return $this->value === $other->value; } public function isValid(FormIdGenerator $generator): bool { return $generator->isValidFormId($this); } }