FamilySlgs   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 4
c 2
b 0
f 0
dl 0
loc 17
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A family() 0 3 1
1
<?php
2
3
namespace App\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
/**
8
 * @property int    $id
9
 * @property int    $family_id
10
 * @property string $stat
11
 * @property string $date
12
 * @property string $plac
13
 * @property string $temp
14
 * @property string $created_at
15
 * @property string $updated_at
16
 */
17
class FamilySlgs extends Model
18
{
19
    /**
20
     * The "type" of the auto-incrementing ID.
21
     *
22
     * @var string
23
     */
24
    protected $keyType = 'integer';
25
26
    /**
27
     * @var array
28
     */
29
    protected $fillable = ['family_id', 'stat', 'date', 'plac', 'temp', 'created_at', 'updated_at'];
30
31
    public function family()
32
    {
33
        return $this->hasOne(Family::class, 'id', 'family_id');
34
    }
35
}
36