maxPerCustomer && null === $this->cooldownDays) { throw new \InvalidArgumentException('PrintRules require at least a max per customer or a cooldown days.'); } if (null !== $this->maxPerCustomer && $this->maxPerCustomer <= 0) { throw new \InvalidArgumentException('Max per customer must be greater than 0.'); } if (null !== $this->cooldownDays && $this->cooldownDays <= 0) { throw new \InvalidArgumentException('Cooldown days must be greater than 0.'); } } }