Saving::session()   A
last analyzed

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 Saving extends Base
6
{
7
    /**
8
     * This is a custom attribute used to calculate profit distribution
9
     *
10
     * @var bool
11
     */
12
    public $duration = 0;
13
14
    /**
15
     * This is a custom attribute used to calculate profit distribution
16
     *
17
     * @var bool
18
     */
19
    public $distribution = 0;
20
21
    /**
22
     * Indicates if the model should be timestamped.
23
     *
24
     * @var bool
25
     */
26
    public $timestamps = false;
27
28
    /**
29
     * The attributes that are mass assignable.
30
     *
31
     * @var array
32
     */
33
    protected $fillable = [
34
        'amount',
35
    ];
36
37
    public function session()
38
    {
39
        return $this->belongsTo(Session::class);
40
    }
41
42
    public function member()
43
    {
44
        return $this->belongsTo(Member::class);
45
    }
46
47
    public function fund()
48
    {
49
        return $this->belongsTo(Fund::class);
50
    }
51
}
52