ReportConfigurationTransport   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 7
eloc 12
c 1
b 0
f 0
dl 0
loc 47
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 3 1
A setType() 0 3 1
A getReportConfiguration() 0 3 1
A setReportConfiguration() 0 3 1
A getId() 0 3 1
A setConfiguration() 0 3 1
A getConfiguration() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Setono\SyliusStockMovementPlugin\Model;
6
7
class ReportConfigurationTransport implements ReportConfigurationTransportInterface
8
{
9
    /** @var int */
10
    protected $id;
11
12
    /** @var string|null */
13
    protected $type;
14
15
    /** @var array */
16
    protected $configuration = [];
17
18
    /** @var ReportConfigurationInterface|null */
19
    protected $reportConfiguration;
20
21
    public function getId(): ?int
22
    {
23
        return $this->id;
24
    }
25
26
    public function getType(): ?string
27
    {
28
        return $this->type;
29
    }
30
31
    public function setType(?string $type): void
32
    {
33
        $this->type = $type;
34
    }
35
36
    public function getConfiguration(): array
37
    {
38
        return $this->configuration;
39
    }
40
41
    public function setConfiguration(array $configuration): void
42
    {
43
        $this->configuration = $configuration;
44
    }
45
46
    public function getReportConfiguration(): ?ReportConfigurationInterface
47
    {
48
        return $this->reportConfiguration;
49
    }
50
51
    public function setReportConfiguration(?ReportConfigurationInterface $reportConfiguration): void
52
    {
53
        $this->reportConfiguration = $reportConfiguration;
54
    }
55
}
56