GetICsFromOrderResponse   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 40
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getOmsId() 0 4 1
A getCodes() 0 4 1
A getBlockId() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Lamoda\OmsClient\V2\Dto;
6
7
final class GetICsFromOrderResponse
8
{
9
    /**
10
     * @var string
11
     */
12
    private $omsId;
13
    /**
14
     * @var string[]
15
     */
16
    private $codes;
17
    /**
18
     * @var string
19
     */
20
    private $blockId;
21
22
    public function __construct(string $omsId, array $codes, string $blockId)
23
    {
24
        $this->omsId = $omsId;
25
        $this->codes = $codes;
26
        $this->blockId = $blockId;
27
    }
28
29
    public function getOmsId(): string
30
    {
31
        return $this->omsId;
32
    }
33
34
    /**
35
     * @return string[]
36
     */
37
    public function getCodes(): array
38
    {
39
        return $this->codes;
40
    }
41
42
    public function getBlockId(): string
43
    {
44
        return $this->blockId;
45
    }
46
}
47