BuildOutContent::getStepLevelContent()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 4
nc 1
nop 1
crap 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