Test Failed
Pull Request — master (#80)
by Maximo
05:46
created

Languages::initialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 5
ccs 0
cts 4
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Gewaer\Models;
5
6
class Languages extends \Baka\Auth\Models\CompanySettings
7
{
8
    /**
9
     *
10
     * @var integer
11
     */
12
    public $id;
13
14
    /**
15
     *
16
     * @var string
17
     */
18
    public $name;
19
20
    /**
21
     *
22
     * @var string
23
     */
24
    public $title;
25
26
    /**
27
     *
28
     * @var string
29
     */
30
    public $order;
31
32
    /**
33
     *
34
     * @var string
35
     */
36
    public $created_at;
37
38
    /**
39
     *
40
     * @var string
41
     */
42
    public $updated_at;
43
44
    /**
45
     *
46
     * @var integer
47
     */
48
    public $is_deleted;
49
50
    /**
51
     * Initialize method for model.
52
     */
53
    public function initialize()
54
    {
55
        parent::initialize();
56
57
        $this->setSource('languages');
58
    }
59
60
    /**
61
     * Returns table name mapped in the model.
62
     *
63
     * @return string
64
     */
65
    public function getSource(): string
66
    {
67
        return 'languages';
68
    }
69
}
70