TenantAtlas/apps/platform/app/Support/Tenants/TenantActionContext.php
Ahmed Darrazi 1123b122d9
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 7m13s
feat: cut over tenant core to managed environments
2026-05-07 08:35:42 +02:00

36 lines
940 B
PHP

<?php
declare(strict_types=1);
namespace App\Support\Tenants;
use App\Models\ManagedEnvironment;
use App\Models\TenantOnboardingSession;
use App\Models\User;
final readonly class TenantActionContext
{
public function __construct(
public ManagedEnvironment $tenant,
public TenantLifecycle $lifecycle,
public TenantActionSurface $surface,
public ?User $actor,
public ?int $workspaceId,
public TenantInteractionLane $lane,
public ?TenantOnboardingSession $relatedOnboardingDraft,
public bool $relatedOnboardingIsResumable,
public bool $hasRelatedOnboardingDraft,
public bool $isArchived,
) {}
public function isOnboardingSurface(): bool
{
return $this->surface->isOnboardingSurface();
}
public function isGenericTenantManagementSurface(): bool
{
return $this->surface->isGenericTenantManagementSurface();
}
}