value); if ($trimmed === '') { throw new \DomainException('GS1 value cannot be empty.'); } } #[\Override] public function equals(mixed $other): bool { return $other instanceof self && $this->value === $other->value && $this->format === $other->format; } public function __toString(): string { return $this->value; } }