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

Tenant::database()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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