ProcessFactory::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * File: ProcessFactory.php
6
 *
7
 * @author      Maciej Sławik <[email protected]>
8
 * Github:      https://github.com/maciejslawik
9
 */
10
11
namespace MSlwk\ReactPhpPlayground\Model\Adapter\ReactPHP;
12
13
use React\ChildProcess\Process;
14
15
/**
16
 * Class ProcessFactory
17
 * @package MSlwk\ReactPhpPlayground\Model\Adapter\ReactPHP
18
 */
19
class ProcessFactory
20
{
21
    /**
22
     * @param string $command
23
     * @return Process
24
     */
25
    public function create(string $command): Process
26
    {
27
        return new Process($command);
28
    }
29
}
30