32 lines
788 B
PHP
32 lines
788 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Support\Tenants;
|
|
|
|
use App\Models\Tenant;
|
|
use App\Models\TenantOnboardingSession;
|
|
|
|
final readonly class TenantActionContext
|
|
{
|
|
public function __construct(
|
|
public Tenant $tenant,
|
|
public TenantLifecycle $lifecycle,
|
|
public TenantActionSurface $surface,
|
|
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();
|
|
}
|
|
}
|