Completed
Push — master ( 6dfed4...d83bff )
by Tom
02:38
created

Tenant   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 12
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A database() 0 4 1
1
<?php
2
3
namespace TomSchlick\Townhouse;
4
5
use Illuminate\Database\Eloquent\Model;
6
use TomSchlick\Townhouse\Tenant\Database;
7
8
class Tenant extends Model
9
{
10
    /**
11
     * Get the database instance.
12
     *
13
     * @return \TomSchlick\Townhouse\Tenant\Database
14
     */
15
    public function database() : Database
16
    {
17
        return new Database($this, config('database.connections.tenant'));
18
    }
19
}
20