public function withAlternateId(int $alternate_id) { if ($this->getAlternateId() === $alternate_id) { return $this; } assert($alternate_id < 1000, "Your alternate IDs have run away"); return static::make($this->getNamespace(), $this->getName(), $alternate_id); }