Passed
Pull Request — master (#3)
by Bartosz
03:17 queued 01:24
created

ProcessFactory::create()   A

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
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