Course   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 26
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getUrl() 0 4 1
1
<?php
2
3
namespace Magister\Models;
4
5
use Config;
6
use Magister\Services\Database\Elegant\Model;
7
8
/**
9
 * Class Course.
10
 */
11
class Course extends Model
12
{
13
    /**
14
     * The primary key for the model.
15
     *
16
     * @var string
17
     */
18
    protected $primaryKey = 'id';
19
20
    /**
21
     * The attributes that should be mutated to dates.
22
     *
23
     * @var array
24
     */
25
    protected $dates = ['begindatum', 'einddatum'];
26
27
    /**
28
     * Get the url associated with the model.
29
     *
30
     * @return string
31
     */
32
    public function getUrl()
33
    {
34
        return Config::get('url.course');
35
    }
36
}
37