ProcessFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 11
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * File:ProcessFactory.php
7
 *
8
 * @author Maciej Sławik <[email protected]>
9
 * @copyright Copyright (C) 2018 Lizard Media (http://lizardmedia.pl)
10
 */
11
12
namespace LizardMedia\AdminIndexer\Model\Adapter\ReactPHP\ChildProcess;
13
14
use LizardMedia\AdminIndexer\Api\Adapter\ReactPHP\ChildProcess\ProcessFactoryInterface;
15
use React\ChildProcess\Process;
16
17
/**
18
 * Class ProcessFactory
19
 * @package LizardMedia\AdminIndexer\Model\Adapter\ReactPHP
20
 */
21
class ProcessFactory implements ProcessFactoryInterface
22
{
23
    /**
24
     * @param string $command
25
     * @return Process
26
     */
27
    public function create(string $command): Process
28
    {
29
        return new Process($command);
30
    }
31
}
32