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

ProcessFactory::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
crap 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