DefaultPermissions   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 10
lcom 0
cbo 0
dl 0
loc 52
ccs 20
cts 20
cp 1
rs 10
c 0
b 0
f 0

10 Methods

Rating   Name   Duplication   Size   Complexity  
A canCreateItem() 0 4 1
A canEditItem() 0 4 1
A canDeleteItem() 0 4 1
A canCreateTable() 0 4 1
A canEditTable() 0 4 1
A canDeleteTable() 0 4 1
A canCreateDatabase() 0 4 1
A canEditDatabase() 0 4 1
A canDeleteDatabase() 0 4 1
A canExecuteCommands() 0 4 1
1
<?php
2
3
namespace UniMan\Core\Permissions;
4
5
class DefaultPermissions implements PermissionsInterface
6
{
7 2
    public function canCreateItem($database, $type, $table)
8
    {
9 2
        return false;
10
    }
11
12 4
    public function canEditItem($database, $type, $table, $item = null)
13
    {
14 4
        return false;
15
    }
16
17 4
    public function canDeleteItem($database, $type, $table, $item)
18
    {
19 4
        return false;
20
    }
21
22 6
    public function canCreateTable($database, $type)
23
    {
24 6
        return false;
25
    }
26
27 8
    public function canEditTable($database, $type, $table)
28
    {
29 8
        return false;
30
    }
31
32 4
    public function canDeleteTable($database, $type, $table)
33
    {
34 4
        return false;
35
    }
36
37 8
    public function canCreateDatabase()
38
    {
39 8
        return false;
40
    }
41
42 6
    public function canEditDatabase($database)
43
    {
44 6
        return false;
45
    }
46
47 8
    public function canDeleteDatabase($database)
48
    {
49 8
        return false;
50
    }
51
52 6
    public function canExecuteCommands()
53
    {
54 6
        return false;
55
    }
56
}
57