RabbitMQPermissions   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 17
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A canCreateItem() 0 4 1
A canCreateTable() 0 4 1
A canDeleteTable() 0 4 1
1
<?php
2
3
namespace UniMan\Drivers\RabbitMQ;
4
5
use UniMan\Core\Permissions\DefaultPermissions;
6
7
class RabbitMQPermissions extends DefaultPermissions
8
{
9 2
    public function canCreateItem($database, $type, $table)
10
    {
11 2
        return true;
12
    }
13
14 2
    public function canCreateTable($database, $type)
15
    {
16 2
        return true;
17
    }
18
19 2
    public function canDeleteTable($database, $type, $table)
20
    {
21 2
        return true;
22
    }
23
}
24