27 خطوط
683 B
PHP
27 خطوط
683 B
PHP
<?php
|
|
|
|
namespace App\Modules\System\Infrastructure;
|
|
|
|
use App\Modules\System\Domain\DeploymentCapabilities;
|
|
use App\Modules\System\Domain\DeploymentMode;
|
|
|
|
final readonly class ConfiguredDeploymentCapabilities implements DeploymentCapabilities
|
|
{
|
|
public function __construct(private DeploymentMode $deploymentMode) {}
|
|
|
|
public function mode(): DeploymentMode
|
|
{
|
|
return $this->deploymentMode;
|
|
}
|
|
|
|
public function supportsMultipleOrganizations(): bool
|
|
{
|
|
return $this->deploymentMode === DeploymentMode::Saas;
|
|
}
|
|
|
|
public function exposesSubscriptionManagement(): bool
|
|
{
|
|
return $this->deploymentMode === DeploymentMode::Saas;
|
|
}
|
|
}
|