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

RunCommand::getOutputDirectory()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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