Passed
Push — main ( c5f286...f548df )
by Thierry
07:56 queued 18s
created

Deposit::getEditableAttribute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Siak\Tontine\Model;
4
5
class Deposit extends Base
6
{
7
    /**
8
     * Indicates if the model should be timestamped.
9
     *
10
     * @var bool
11
     */
12
    public $timestamps = false;
13
14
    /**
15
     * The attributes that are mass assignable.
16
     *
17
     * @var array
18
     */
19
    protected $fillable = [
20
        'amount',
21
    ];
22
23
    public function session()
24
    {
25
        return $this->belongsTo(Session::class);
26
    }
27
28
    public function receivable()
29
    {
30
        return $this->belongsTo(Receivable::class);
31
    }
32
}
33