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

BatchJobContext   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
eloc 9
c 1
b 0
f 0
dl 0
loc 29
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A setBatch() 0 3 1
A getConfiguration() 0 3 1
A getBatch() 0 3 1
A setConfiguration() 0 3 1
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