Passed
Pull Request — master (#41)
by Ashoka
02:55
created

ProcessFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

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