Process::__construct()   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: Process.php
6
 *
7
 * @author      Maciej Sławik <[email protected]>
8
 * Github:      https://github.com/maciejslawik
9
 */
10
11
12
namespace MSlwk\ReactPhpPlayground\Model\Data;
13
14
use MSlwk\ReactPhpPlayground\Api\Data\ProcessInterface;
15
16
/**
17
 * Class Process
18
 * @package MSlwk\ReactPhpPlayground\Model\Data
19
 */
20
class Process implements ProcessInterface
21
{
22
    /**
23
     * @var string
24
     */
25
    private $command;
26
27
    /**
28
     * Process constructor.
29
     * @param string $command
30
     */
31
    public function __construct(string $command)
32
    {
33
        $this->command = $command;
34
    }
35
36
    /**
37
     * @return string
38
     */
39
    public function getCommand(): string
40
    {
41
        return $this->command;
42
    }
43
}
44