BuildOutContent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 18
ccs 7
cts 7
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getParentLevelContent() 0 6 1
A getStepLevelContent() 0 7 1
1
<?php
2
3
namespace GD\Helpers;
4
5
trait BuildOutContent
6
{
7
8 54
    public function getParentLevelContent($parent_method_name)
9
    {
10
        return [
11 18
            "method_name" => $parent_method_name
12 36
        ];
13
    }
14
15 54
    public function getStepLevelContent($step_method_name)
16
    {
17
        return [
18 54
            "method_name" => $step_method_name,
19 54
            "reference" => sprintf("\$this->%s", $step_method_name) . "()"
20 36
        ];
21
    }
22
}
23