Completed
Push — master ( 2aea27...e8d42f )
by Nicolai
04:56 queued 02:51
created

Template::getBaseTestClass()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 3
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
namespace SmartWeb\ModuleTesting\Util;
5
6
use Illuminate\Support\Str;
7
use SmartWeb\ModuleTesting\Generator\CodeceptionTestType;
8
9
10
/**
11
 * Class Template
12
 *
13
 * @package SmartWeb\ModuleTesting\Util
14
 */
15
final class Template
16
{
17
    
18
    /**
19
     * @inheritDoc
20
     */
21
    private function __construct()
22
    {
23
    }
24
    
25
    /**
26
     * @param string              $suite
27
     * @param CodeceptionTestType $type
28
     * @param string              $prefix
29
     *
30
     * @return string
31
     */
32
    public static function getBaseTestClass(string $suite, CodeceptionTestType $type, string $prefix = 'Base') : string
33
    {
34
        return $prefix . Str::studly($suite) . Str::studly((string)$type);
35
    }
36
    
37
}
38