value < 1) { throw new \InvalidArgumentException(sprintf('Requests per minute must be at least 1, got %d.', $this->value)); } } public function toInt(): int { return $this->value; } public function isGreaterThan(self $other): bool { return $this->value > $other->value; } #[\Override] public function __toString(): string { return (string) $this->value; } #[\Override] public function equals(mixed $other): bool { return $other instanceof self && $this->value === $other->value; } }