FileSystemSettings   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 14
dl 0
loc 61
ccs 0
cts 13
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSource() 0 3 1
A initialize() 0 9 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Canvas\Models;
5
6
class FileSystemSettings extends AbstractModel
7
{
8
    /**
9
     *
10
     * @var integer
11
     */
12
    public $filesystem_id;
13
14
    /**
15
     *
16
     * @var string
17
     */
18
    public $name;
19
20
    /**
21
     *
22
     * @var string
23
     */
24
    public $value;
25
26
    /**
27
     *
28
     * @var string
29
     */
30
    public $created_at;
31
32
    /**
33
     *
34
     * @var string
35
     */
36
    public $updated_at;
37
38
    /**
39
     *
40
     * @var integer
41
     */
42
    public $is_deleted;
43
44
    /**
45
     * Initialize method for model.
46
     */
47
    public function initialize()
48
    {
49
        $this->setSource('filesystem_settings');
50
51
        $this->belongsTo(
52
            'filesystem_id',
53
            'Canvas\Models\Filesystem',
54
            'id',
55
            ['alias' => 'file']
56
        );
57
    }
58
59
    /**
60
     * Returns table name mapped in the model.
61
     *
62
     * @return string
63
     */
64
    public function getSource() : string
65
    {
66
        return 'filesystem_settings';
67
    }
68
}
69