Template::getBaseTestClass()   A
last analyzed

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\Test\CodeceptionTestType;
8
9
/**
10
 * Class Template
11
 *
12
 * @package SmartWeb\ModuleTesting\Util
13
 */
14
final class Template
15
{
16
    
17
    /**
18
     * @inheritDoc
19
     */
20
    private function __construct()
21
    {
22
    }
23
    
24
    /**
25
     * @param string              $suite
26
     * @param CodeceptionTestType $type
27
     * @param string              $prefix
28
     *
29
     * @return string
30
     */
31
    public static function getBaseTestClass(string $suite, CodeceptionTestType $type, string $prefix = 'Base') : string
32
    {
33
        return $prefix . Str::studly($suite) . Str::studly((string)$type);
34
    }
35
}
36