Speciality   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 18
rs 10
c 1
b 0
f 0
ccs 0
cts 8
cp 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A teachers() 0 4 1
A study_submodules() 0 4 1
1
<?php
2
3
namespace Scool\EnrollmentMobile\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
/**
8
 * Class Speciality.
9
 *
10
 * @package Scool\EnrollmentMobile\Models
11
 */
12
class Speciality extends Model
13
{
14
    /**
15
     * The teachers that belongs to the speciality.
16
     */
17
    public function teachers()
18
    {
19
        return $this->belongsToMany(config('enrollment_mobile.user_class'));
20
    }
21
22
    /**
23
     * The study submodules that belongs to the speciality.
24
     */
25
    public function study_submodules()
26
    {
27
        return $this->belongsToMany(Submodule::class);
28
    }
29
}
30