Subscription   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 36
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A receivables() 0 3 1
A payable() 0 3 1
A member() 0 3 1
A pool() 0 3 1
1
<?php
2
3
namespace Siak\Tontine\Model;
4
5
class Subscription 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
        'title',
21
    ];
22
23
    public function pool()
24
    {
25
        return $this->belongsTo(Pool::class);
26
    }
27
28
    public function member()
29
    {
30
        return $this->belongsTo(Member::class);
31
    }
32
33
    public function payable()
34
    {
35
        return $this->hasOne(Payable::class);
36
    }
37
38
    public function receivables()
39
    {
40
        return $this->hasMany(Receivable::class);
41
    }
42
}
43