| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function findOneByCode(string $tenantCode): ?TenantInterface |
||
| 38 | { |
||
| 39 | if (isset($this->internalCache[$tenantCode])) { |
||
| 40 | return $this->internalCache[$tenantCode]; |
||
| 41 | } |
||
| 42 | |||
| 43 | $tenant = $this->tenantRepository->findOneByCode($tenantCode); |
||
| 44 | $this->internalCache[$tenantCode] = $tenant; |
||
| 45 | |||
| 46 | return $tenant; |
||
| 47 | } |
||
| 48 | } |
||
| 49 |