Passed
Push — master ( 38f2ed...9a299f )
by Jan-Marten
01:15
created

ProcessFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 12
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 1
1
<?php
2
/**
3
 * Copyright MediaCT. All rights reserved.
4
 * https://www.mediact.nl
5
 */
6
7
namespace Mediact\TestingSuite\Composer\Factory;
8
9
use Symfony\Component\Process\Process;
10
11
class ProcessFactory implements ProcessFactoryInterface
12
{
13
    /**
14
     * Create a new Process instance.
15
     *
16
     * @param string $commandLine
17
     *
18
     * @return Process
19
     */
20 1
    public function create(string $commandLine): Process
21
    {
22 1
        return new Process($commandLine);
23
    }
24
}
25