Passed
Push — main ( 25adab...078388 )
by Thierry
06:09
created

PartialRefund   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 7
c 1
b 0
f 1
dl 0
loc 31
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A debt() 0 3 1
A session() 0 3 1
A getEditableAttribute() 0 3 1
1
<?php
2
3
namespace Siak\Tontine\Model;
4
5
class PartialRefund 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 debt()
29
    {
30
        return $this->belongsTo(Debt::class);
31
    }
32
33
    public function getEditableAttribute()
34
    {
35
        return true;
36
    }
37
}
38