Template   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 22
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getBaseTestClass() 0 4 1
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