Blockout   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 16
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTable() 0 3 1
1
<?php
2
3
namespace IproSync\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class Blockout extends Model
8
{
9
    use HasTraitsWithCasts, HasPullAt;
10
11
    public $incrementing = false;
12
13
    protected $guarded = [];
14
15
    protected $casts = [
16
        'check_in'  => 'datetime:Y-m-d',
17
        'check_out' => 'datetime:Y-m-d',
18
    ];
19
20
    public function getTable(): string
21
    {
22
        return config('iprosoftware-sync.tables.blockouts');
23
    }
24
}
25