Total Complexity | 6 |
Total Lines | 63 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class PipelineContainer |
||
15 | { |
||
16 | /** |
||
17 | * @var Step |
||
18 | */ |
||
19 | private $step; |
||
20 | |||
21 | /** |
||
22 | * @return PipelineContainer |
||
23 | */ |
||
24 | 2 | public static function create(Step $step) |
|
25 | { |
||
26 | 2 | return new self($step); |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param Step $step |
||
31 | * @param string $prefix |
||
32 | * @param string $project name |
||
33 | * |
||
34 | * @return string |
||
35 | */ |
||
36 | 1 | public static function createName(Step $step, $prefix, $project) |
|
37 | { |
||
38 | 1 | return self::create($step)->generateName($prefix, $project); |
|
39 | } |
||
40 | |||
41 | /** |
||
42 | * StepContainer constructor. |
||
43 | * |
||
44 | * @param Step $step |
||
45 | */ |
||
46 | 2 | public function __construct(Step $step) |
|
49 | 2 | } |
|
50 | |||
51 | /** |
||
52 | * @param string $prefix |
||
53 | * @param string $project name |
||
54 | * |
||
55 | * @return string |
||
56 | */ |
||
57 | 2 | public function generateName($prefix, $project) |
|
77 | ) |
||
78 | ); |
||
81 |