Passed
Push — master ( c17e3f...08ea64 )
by Iman
05:32
created

GetCurrentX   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getCurrentModule() 0 3 1
A getCurrentMenuId() 0 3 1
A getCurrentModuleName() 0 3 1
A getCurrentId() 0 3 1
A getCurrentMethod() 0 3 1
1
<?php
2
3
namespace crocodicstudio\crudbooster\Modules\PrivilegeModule;
4
5
use crocodicstudio\crudbooster\helpers\GetCurrentX as GetCurrentXClass;
6
7
trait GetCurrentX
8
{
9
    public static function getCurrentModule()
10
    {
11
        return GetCurrentXClass::getCurrentModule();
12
    }
13
14
    public static function getCurrentModuleName()
15
    {
16
        return GetCurrentXClass::getCurrentModule()->name;
17
    }
18
19
    public static function getCurrentMenuId()
20
    {
21
        return GetCurrentXClass::getCurrentMenuId();
22
    }
23
24
    public static function getCurrentId()
25
    {
26
        return GetCurrentXClass::getCurrentId();
27
    }
28
29
    public static function getCurrentMethod()
30
    {
31
        return GetCurrentXClass::getCurrentMethod();
32
    }
33
34
}