Completed
Push — master ( d80f87...33b881 )
by Agaletskiy
01:56
created

DocumentCreateRequest::getProductGroup()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Lamoda\IsmpClient\V3\Dto;
6
7
final class DocumentCreateRequest
8
{
9
    /**
10
     * @var string
11
     */
12
    private $productDocument;
13
    /**
14
     * @var string
15
     */
16
    private $documentFormat;
17
    /**
18
     * @var string
19
     */
20
    private $signature;
21
    /**
22
     * @var string|null
23
     */
24
    private $productGroup;
25
    /**
26
     * @var string|null
27
     */
28
    private $type;
29
30
    public function __construct(
31
        string $productDocument,
32
        string $documentFormat,
33
        string $signature,
34
        string $productGroup = null,
35
        string $type = null
36
    ) {
37
        $this->productDocument = $productDocument;
38
        $this->documentFormat = $documentFormat;
39
        $this->signature = $signature;
40
        $this->productGroup = $productGroup;
41
        $this->type = $type;
42
    }
43
44
    public function getProductDocument(): string
45
    {
46
        return $this->productDocument;
47
    }
48
49
    public function getDocumentFormat(): string
50
    {
51
        return $this->documentFormat;
52
    }
53
54
    public function getSignature(): string
55
    {
56
        return $this->signature;
57
    }
58
59
    public function getProductGroup(): ?string
60
    {
61
        return $this->productGroup;
62
    }
63
64
    public function getType(): ?string
65
    {
66
        return $this->type;
67
    }
68
}
69