Passed
Pull Request — master (#48)
by Rafael
09:06
created

UserLinkedSources   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 56
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 56
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A initialize() 0 5 1
A getSource() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Gewaer\Models;
5
6
class UserLinkedSources extends \Baka\Auth\Models\UserLinkedSources
7
{
8
    /**
9
     *
10
     * @var integer
11
     */
12
    public $source_id;
13
14
    /**
15
     *
16
     * @var integer
17
     */
18
    public $users_id;
19
20
    /**
21
     *
22
     * @var string
23
     */
24
    public $source_users_id;
25
26
    /**
27
     *
28
     * @var string
29
     */
30
    public $source_users_id_text;
31
32
    /**
33
     *
34
     * @var string
35
     */
36
    public $source_username;
37
38
    /**
39
     *
40
     * @var integer
41
     */
42
    public $is_deleted;
43
44
    /**
45
     * Initialize method for model.
46
     */
47 68
    public function initialize()
48
    {
49 68
        parent::initialize();
50
51 68
        $this->setSource('user_linked_sources');
52 68
    }
53
54
    /**
55
     * Returns table name mapped in the model.
56
     *
57
     * @return string
58
     */
59 3
    public function getSource(): string
60
    {
61 3
        return 'user_linked_sources';
62
    }
63
}
64