effectiveState === 'enabled'; } public function isPaused(): bool { return $this->effectiveState === 'paused'; } public function hasWorkspaceScope(): bool { return $this->matchedScopeType === 'workspace' && $this->workspaceId !== null; } public function scopeLabel(): string { return match ($this->matchedScopeType) { 'global' => 'Global', 'workspace' => $this->workspaceId !== null ? 'Workspace #'.$this->workspaceId : 'Workspace', default => 'No active pause', }; } public function expiresAtIso8601(): ?string { return $this->expiresAt?->toIso8601String(); } }