duration = $duration ?? 'persistent'; return $this; } public function getDuration(): int | string { return $this->evaluate($this->duration) ?? 'persistent'; } public function seconds(float $seconds): static { $this->duration((int) ($seconds * 1000)); return $this; } public function persistent(): static { $this->duration('persistent'); return $this; } }