Completed
Push — master ( fcd0e2...c59fec )
by Alfred
01:57
created

BuildOutContent::getStepLevelContent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 10
ccs 7
cts 7
cp 1
rs 9.4285
cc 1
eloc 7
nc 1
nop 1
crap 1
1
<?php
2
3
namespace GD\Helpers;
4
5
trait BuildOutContent
6
{
7
8 9
    public function getParentLevelContent($parent_method_name) {
9
        return [
10 9
            "public function {$parent_method_name}() {",
11 3
            "}"
12 6
        ];
13
    }
14
15 9
    public function getStepLevelContent($step_method_name) {
16
        return [
17
            'method' => [
18 9
                "public function {$step_method_name}() {",
19 9
                "\$this->markTestIncomplete('Time to code');",
20 3
                "}"
21 6
            ],
22 9
            "reference" => sprintf("\$this->%s", $step_method_name)
23 6
        ];
24
    }
25
26
}