Passed
Push — master ( db71b9...272130 )
by Darío
04:27
created

UserRole::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Auth\Model;
4
5
use Drone\Db\Entity;
6
7
class UserRole extends Entity
8
{
9
	/**
10
	 * @var string
11
	 */
12
    public $USER_ID;
13
14
	/**
15
	 * @var integer
16
	 */
17
    public $ROLE_ID;
18
19
    public function __construct($data = [])
20
    {
21
        parent::__construct($data);
22
23
        $config = include 'module/Auth/config/user.config.php';
24
        $prefix = $config["database"]["prefix"];
25
26
        $this->setTableName($prefix . "_" . "USER_ROLE");
27
    }
28
}