Outflow   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 37
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A session() 0 3 1
A member() 0 3 1
A category() 0 3 1
A charge() 0 3 1
1
<?php
2
3
namespace Siak\Tontine\Model;
4
5
class Outflow 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
        'comment',
22
    ];
23
24
    public function session()
25
    {
26
        return $this->belongsTo(Session::class);
27
    }
28
29
    public function member()
30
    {
31
        return $this->belongsTo(Member::class);
32
    }
33
34
    public function charge()
35
    {
36
        return $this->belongsTo(Charge::class);
37
    }
38
39
    public function category()
40
    {
41
        return $this->belongsTo(Category::class);
42
    }
43
}
44