Passed
Push — main ( 9da855...5626b3 )
by Thierry
12:12 queued 05:12
created

DepositReal   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A session() 0 3 1
A receivable() 0 3 1
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