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

BuildOutContent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
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 22
ccs 11
cts 11
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getParentLevelContent() 0 6 1
A getStepLevelContent() 0 10 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
}