Note   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 18
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A person() 0 3 1
1
<?php
2
3
namespace App\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class Note extends Model
8
{
9
    /**
10
     * The "type" of the auto-incrementing ID.
11
     *
12
     * @var string
13
     */
14
    protected $keyType = 'integer';
15
16
    protected $fillable = ['gid', 'note', 'rin', 'name', 'description', 'is_active', 'type_id', 'group'];
17
18
    protected $attributes = ['is_active' => false];
19
20
    protected $casts = ['is_active' => 'boolean'];
21
22
    public function person()
23
    {
24
        return $this->belongsToMany(Person::class);
25
    }
26
}
27