Subm::addr()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace App\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
/**
8
 * @property int    $id
9
 * @property string $group
10
 * @property int    $gid
11
 * @property string $name
12
 * @property int    $addr_id
13
 * @property string $rin
14
 * @property string $rfn
15
 * @property string $lang
16
 * @property string $phon
17
 * @property string $email
18
 * @property string $fax
19
 * @property string $www
20
 * @property string $created_at
21
 * @property string $updated_at
22
 */
23
class Subm extends Model
24
{
25
    /**
26
     * The "type" of the auto-incrementing ID.
27
     *
28
     * @var string
29
     */
30
    protected $keyType = 'integer';
31
32
    /**
33
     * @var array
34
     */
35
    protected $fillable = ['group', 'gid', 'name', 'addr_id', 'rin', 'rfn', 'lang', 'phon', 'email', 'fax', 'www', 'created_at', 'updated_at'];
36
37
    public function addr()
38
    {
39
        return $this->belongsTo(Addr::class);
40
    }
41
}
42