UsersTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 11
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A initialize() 0 6 2
1
<?php
2
/**
3
 * CakePHP permission handling library
4
 * @author Tao <[email protected]>
5
 */
6
namespace Slince\CakePermission\Model\Table;
7
8
use Cake\Core\Configure;
9
use Cake\ORM\Table;
10
11
class UsersTable extends Table
12
{
13
    use UsersTableTrait;
14
15
    public function initialize(array $config)
16
    {
17
        parent::initialize($config);
18
        $this->setTable(Configure::read('Permission.tableNameMap.users') ?: 'users');
19
        $this->buildPermissionRelationship();
20
    }
21
}