Test Failed
Push — main ( fc8ba5...9083af )
by Bingo
05:27
created

SetRemovalTimeBatchConfiguration::__construct()   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 2
1
<?php
2
3
namespace Jabe\Engine\Impl\Batch\RemovalTime;
4
5
use Jabe\Engine\Impl\Batch\{
6
    BatchConfiguration,
7
    DeploymentMappings
8
};
9
10
class SetRemovalTimeBatchConfiguration extends BatchConfiguration
11
{
12
    protected $removalTime;
13
    protected $hasRemovalTime;
14
    protected $isHierarchical;
15
16
    public function __construct(array $ids, DeploymentMappings $mappings = null)
17
    {
18
        parent::__construct($ids, $mappings);
19
    }
20
21
    public function getRemovalTime(): string
22
    {
23
        return $this->removalTime;
24
    }
25
26
    public function setRemovalTime(string $removalTime): SetRemovalTimeBatchConfiguration
27
    {
28
        $this->removalTime = $removalTime;
29
        return $this;
30
    }
31
32
    public function hasRemovalTime(): bool
33
    {
34
        return $this->hasRemovalTime;
35
    }
36
37
    public function setHasRemovalTime(bool $hasRemovalTime): SetRemovalTimeBatchConfiguration
38
    {
39
        $this->hasRemovalTime = $hasRemovalTime;
40
        return $this;
41
    }
42
43
    public function isHierarchical(): bool
44
    {
45
        return $this->isHierarchical;
46
    }
47
48
    public function setHierarchical(bool $hierarchical): SetRemovalTimeBatchConfiguration
49
    {
50
        $this->isHierarchical = $hierarchical;
51
        return $this;
52
    }
53
}
54