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

BatchJobContext::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 2
1
<?php
2
3
namespace Jabe\Engine\Impl\Batch;
4
5
use Jabe\Engine\Impl\Persistence\Entity\ByteArrayEntity;
6
7
class BatchJobContext
8
{
9
    protected $batch;
10
    protected $configuration;
11
12
    public function __construct(BatchEntity $batchEntity, ByteArrayEntity $configuration)
13
    {
14
        $this->batch = $batchEntity;
15
        $this->configuration = $configuration;
16
    }
17
18
    public function getBatch(): BatchEntity
19
    {
20
        return $this->batch;
21
    }
22
23
    public function setBatch(BatchEntity $batch): void
24
    {
25
        $this->batch = $batch;
26
    }
27
28
    public function getConfiguration(): ByteArrayEntity
29
    {
30
        return $this->configuration;
31
    }
32
33
    public function setConfiguration(ByteArrayEntity $configuration): void
34
    {
35
        $this->configuration = $configuration;
36
    }
37
}
38