Passed
Push — master ( 7c7732...5d308c )
by Stone
03:35
created

RoleModel::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Models;
4
5
use Core\Constant;
6
use Core\Container;
7
use Core\Model;
8
9
class RoleModel extends Model{
10
11
    private $roleTbl;
12
13
    public function __construct(Container $container)
14
    {
15
        parent::__construct($container);
16
        $this->roleTbl = $this->getTablePrefix("roles");
17
    }
18
19
    /**
20
     * gets the list of all the roles
21
     * @return array
22
     * @throws \ReflectionException
23
     */
24
    public function getRoleList()
25
    {
26
        return $this->getResultSet();
27
    }
28
}