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

GetCurrentX::getCurrentModuleName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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
}