shouldOpenUrlInNewTab = $condition; return $this; } public function url(string | Closure | null $url, bool | Closure $shouldOpenInNewTab = false): static { $this->openUrlInNewTab($shouldOpenInNewTab); $this->url = $url; return $this; } public function getUrl(): ?string { return $this->evaluate($this->url); } public function shouldOpenUrlInNewTab(): bool { return $this->evaluate($this->shouldOpenUrlInNewTab); } }