Passed
Pull Request — develop (#11)
by
unknown
07:48 queued 03:43
created

Invitation   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

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