| Total Complexity | 6 | 
| Total Lines | 37 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 10 | class Tenant | ||
| 11 | { | ||
| 12 | private static $tenantPrefix; | ||
| 13 | |||
| 14 | public static function set(Company $company) | ||
| 23 | } | ||
| 24 | |||
| 25 | public static function get() | ||
| 26 |     { | ||
| 27 | return Company::find(self::tenantId()); | ||
| 28 | } | ||
| 29 | |||
| 30 | public static function tenantDatabase() | ||
| 31 |     { | ||
| 32 |         return config('database.connections.'.Connections::Tenant.'.database'); | ||
| 33 | } | ||
| 34 | |||
| 35 | private static function tenantId() | ||
| 38 | } | ||
| 39 | |||
| 40 | private static function tenantPrefix() | ||
| 49 |