Passed
Pull Request — main (#67)
by Thierry
06:31
created

DepositReal::session()   A

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 Siak\Tontine\Model;
4
5
class DepositReal extends Base
6
{
7
    /**
8
     * The table associated with the model.
9
     *
10
     * @var string
11
     */
12
    protected $table = 'deposits';
13
14
    /**
15
     * Indicates if the model should be timestamped.
16
     *
17
     * @var bool
18
     */
19
    public $timestamps = false;
20
21
    /**
22
     * The attributes that are mass assignable.
23
     *
24
     * @var array
25
     */
26
    protected $fillable = [
27
        'amount',
28
    ];
29
30
    public function session()
31
    {
32
        return $this->belongsTo(Session::class);
33
    }
34
35
    public function receivable()
36
    {
37
        return $this->belongsTo(Receivable::class);
38
    }
39
}
40