Test Failed
Push — master ( d0ec41...3b9ce6 )
by Maximo
02:08
created

Roles::getSource()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
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 Roles extends AbstractModel
7
{
8
    /**
9
     *
10
     * @var integer
11
     */
12
    public $id;
13
14
    /**
15
     *
16
     * @var integer
17
     */
18
    public $name;
19
20
    /**
21
     *
22
     * @var integer
23
     */
24
    public $description;
25
26
    /**
27
     *
28
     * @var integer
29
     */
30
    public $scope;
31
32
    /**
33
     *
34
     * @var integer
35
     */
36
    public $company_id;
37
38
    /**
39
     *
40
     * @var string
41
     */
42
    public $created_at;
43
44
    /**
45
     *
46
     * @var string
47
     */
48
    public $updated_at;
49
50
    /**
51
     *
52
     * @var integer
53
     */
54
    public $is_deleted;
55
56
    /**
57
     * Initialize method for model.
58
     */
59
    public function initialize()
60
    {
61
        parent::initialize();
0 ignored issues
show
Bug introduced by
The method initialize() does not exist on Gewaer\Models\AbstractModel. Since it exists in all sub-types, consider adding an abstract or default implementation to Gewaer\Models\AbstractModel. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

61
        parent::/** @scrutinizer ignore-call */ 
62
                initialize();
Loading history...
62
63
        $this->setSource('roles');
64
    }
65
66
    /**
67
     * Returns table name mapped in the model.
68
     *
69
     * @return string
70
     */
71
    public function getSource(): string
72
    {
73
        return 'roles';
74
    }
75
}
76