Passed
Push — main ( 1c458a...5a987a )
by Thierry
10:56 queued 05:26
created

OnetimeBill   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 22
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A bill() 0 3 1
A charge() 0 3 1
A member() 0 3 1
1
<?php
2
3
namespace Siak\Tontine\Model;
4
5
class OnetimeBill extends Base
6
{
7
    /**
8
     * Indicates if the model should be timestamped.
9
     *
10
     * @var bool
11
     */
12
    public $timestamps = false;
13
14
    public function charge()
15
    {
16
        return $this->belongsTo(Charge::class);
17
    }
18
19
    public function member()
20
    {
21
        return $this->belongsTo(Member::class);
22
    }
23
24
    public function bill()
25
    {
26
        return $this->belongsTo(Bill::class);
27
    }
28
}
29