Folder::getUrl()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Magister\Models\Message;
4
5
use Config;
6
use Magister\Services\Database\Elegant\Model;
7
8
/**
9
 * Class Folder.
10
 */
11
class Folder extends Model
12
{
13
    /**
14
     * The attributes that should be mutated to dates.
15
     *
16
     * @var array
17
     */
18
    protected $dates = ['VerstuurdOp', 'Begin', 'Einde'];
19
20
    /**
21
     * Get the url associated with the model.
22
     *
23
     * @return string
24
     */
25
    public function getUrl()
26
    {
27
        return Config::get('url.folder');
28
    }
29
30
    /**
31
     * Define a relationship.
32
     *
33
     * @return mixed
34
     */
35
    public function message()
36
    {
37
        return $this->hasOne('Magister\Models\Message\Message', 'message', 'Id');
38
    }
39
}
40