Completed
Push — master ( 4da889...aeb898 )
by Igor
04:51
created

Employee   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 21
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1
1
<?php
2
3
namespace App;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Notifications\Notifiable;
7
use Illuminate\Contracts\Auth\MustVerifyEmail;
8
use Illuminate\Contracts\Auth\Authenticatable;
9
use Illuminate\Auth\Authenticatable as AuthenticableTrait;
10
11
class Employee extends Model implements Authenticatable
12
{
13
    use Notifiable;
14
    use AuthenticableTrait;
15
16
    protected $table = 'employees';
17
    public $timestamps = true;
18
19
    /**
20
     * The attributes that should be hidden for arrays.
21
     *
22
     * @var array
23
     */
24
    protected $hidden = [
25
        'password', 'remember_token',
26
    ];
27
    protected $dateFormat = 'Y-m-d H:i:s';
28
29
    public function getActiveAttribute($active)
30
    {
31
        return (bool) $active;
32
    }
33
}
34