Lines
100.00%
7 / 7
Methods
100.00%
7 / 7
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| getTenantId | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| getHostname | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| getTablePrefix | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| getConfigDir | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| getPlan | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| getQuotas | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| 22 | readonly class TenantContext | |
| 23 | { | |
| 24 | public function __construct( | |
| 25 | private int $tenantId, | |
| 26 | private string $hostname, | |
| 27 | private string $tablePrefix, | |
| 28 | private string $configDir, | |
| 29 | private string $plan, | |
| 30 | private TenantQuotas $quotas, | |
| 31 | ) { | |
| 32 | } | |
| 33 | ||
| 34 | public function getTenantId(): int | |
| 35 | { | |
| 36 | return $this->tenantId; | |
| 37 | } | |
| 38 | ||
| 39 | public function getHostname(): string | |
| 40 | { | |
| 41 | return $this->hostname; | |
| 42 | } | |
| 43 | ||
| 44 | public function getTablePrefix(): string | |
| 45 | { | |
| 46 | return $this->tablePrefix; | |
| 47 | } | |
| 48 | ||
| 49 | public function getConfigDir(): string | |
| 50 | { | |
| 51 | return $this->configDir; | |
| 52 | } | |
| 53 | ||
| 54 | public function getPlan(): string | |
| 55 | { | |
| 56 | return $this->plan; | |
| 57 | } | |
| 58 | ||
| 59 | public function getQuotas(): TenantQuotas | |
| 60 | { | |
| 61 | return $this->quotas; | |
| 62 | } | |
| 63 | } |