Passed
Push — master ( b89ee9...82ea21 )
by Sebastian
03:18
created

Config::getPathToCaptainHookExecutable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of CaptainHook
5
 *
6
 * (c) Sebastian Feldmann <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace CaptainHook\App\Hook\Template\Docker;
15
16
/**
17
 * Class Config
18
 *
19
 * @package CaptainHook\App
20
 */
21
class Config
22
{
23
    /**
24
     * Docker command to execute
25
     *
26
     * @var string
27
     */
28
    private $command;
29
30
    /**
31
     * Custom Path to captainhook binary to execute
32
     * @var string
33
     */
34
    private $path;
35
36
    /**
37
     * Config constructor.
38
     *
39
     * @param string $command
40
     * @param string $path
41
     */
42
    public function __construct(string $command, string $path)
43
    {
44
        $this->command = $command;
45
        $this->path    = $path;
46
    }
47
48
    /**
49
     * @return string
50
     */
51
    public function getDockerCommand(): string
52
    {
53
        return $this->command;
54
    }
55
56
    /**
57
     * @return string
58
     */
59
    public function getPathToCaptainHookExecutable(): string
60
    {
61
        return $this->path;
62
    }
63
}
64