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

RoleModel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getRoleList() 0 3 1
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
}