Completed
Push — master ( e28e5a...6fa56b )
by Julien
02:03
created

AbstractBuildJob::getDockerImageName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
4
namespace TheAentMachine\AentGitLabCI\GitLabCI\Job;
5
6
abstract class AbstractBuildJob extends AbstractJob
7
{
8
    /** @var bool */
9
    protected $isVariableEnvironment;
10
11
    /** @var string */
12
    protected $dockerImageName;
13
14
    public function __construct(string $envName, string $serviceName)
15
    {
16
        $this->jobName = "build_$envName" . "_$serviceName";
17
        $this->stage = 'build';
18
    }
19
20
    /**
21
     * @return bool
22
     */
23
    public function isVariableEnvironment(): bool
24
    {
25
        return $this->isVariableEnvironment;
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getDockerImageName(): string
32
    {
33
        return $this->dockerImageName;
34
    }
35
}
36