Passed
Pull Request — develop (#11)
by
unknown
06:16
created

Invitation::group()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Judite\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class Invitation extends Model
8
{
9
    /**
10
     * Get the student of this invitation.
11
     *
12
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
13
     */
14
    public function student()
15
    {
16
        return $this->belongsTo(Student::class);
17
    }
18
19
    /**
20
     * Get the group of this invitation.
21
     *
22
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
23
     */
24
    public function group()
25
    {
26
        return $this->belongsTo(Group::class);
27
    }
28
}
29