Completed
Push — master ( d49b73...f27323 )
by
unknown
04:02
created

Period::getUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Magister\Models\Attendance;
4
5
use Config;
6
use Magister\Services\Database\Elegant\Model;
7
use Magister\Services\Contracts\Translation\ShouldBeTranslatable;
8
9
/**
10
 * Class Period.
11
 */
12
class Period extends Model implements ShouldBeTranslatable
13
{
14
    /**
15
     * The attributes that should be mutated to dates.
16
     *
17
     * @var array
18
     */
19
    protected $dates = ['Start', 'Eind'];
20
21
    /**
22
     * Get the url associated with the model.
23
     *
24
     * @return string
25
     */
26
    public function getUrl()
27
    {
28
        return Config::get('url.period');
29
    }
30
}
31