Completed
Push — master ( 9b25f2...d42705 )
by Tomáš
09:42 queued 07:08
created

RunCommand   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 39
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A isRunServer() 0 4 1
A getOutputDirectory() 0 4 1
A getSourceDirectory() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of Symplify
7
 * Copyright (c) 2016 Tomas Votruba (http://tomasvotruba.cz).
8
 */
9
10
namespace Symplify\PHP7_Sculpin\Application\Command;
11
12
final class RunCommand
13
{
14
    /**
15
     * @var bool
16
     */
17
    private $runServer;
18
19
    /**
20
     * @var string
21
     */
22
    private $sourceDirectory;
23
24
    /**
25
     * @var string
26
     */
27
    private $outputDirectory;
28
29 1
    public function __construct(bool $runServer, string $sourceDirectory, string $outputDirectory)
30
    {
31 1
        $this->runServer = $runServer;
32 1
        $this->sourceDirectory = $sourceDirectory;
33 1
        $this->outputDirectory = $outputDirectory;
34 1
    }
35
36 1
    public function isRunServer() : bool
37
    {
38 1
        return $this->runServer;
39
    }
40
41 1
    public function getOutputDirectory() : string
42
    {
43 1
        return $this->outputDirectory;
44
    }
45
46 1
    public function getSourceDirectory() : string
47
    {
48 1
        return $this->sourceDirectory;
49
    }
50
}
51