Passed
Push — main ( 936852...10149e )
by Thierry
15:09
created

PoolRound::end_session()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Siak\Tontine\Model;
4
5
class PoolRound 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
        'start_session_id',
21
        'end_session_id',
22
    ];
23
24
    public function pool()
25
    {
26
        return $this->belongsTo(Pool::class);
27
    }
28
29
    public function start_session()
30
    {
31
        return $this->belongsTo(Session::class, 'start_session_id');
32
    }
33
34
    public function end_session()
35
    {
36
        return $this->belongsTo(Session::class, 'end_session_id');
37
    }
38
}
39