getCreateMethodType()   A
last analyzed

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\OmsClient\V2\Dto;
6
7
use DateTimeInterface;
8
9
final class CreateOrderForEmissionICRequestLight extends CreateOrderForEmissionICRequest
10
{
11
    /**
12
     * @var string
13
     */
14
    private $contactPerson;
15
    /**
16
     * @var string
17
     */
18
    private $releaseMethodType;
19
    /**
20
     * @var string
21
     */
22
    private $createMethodType;
23
    /**
24
     * @var string
25
     */
26
    private $productionOrderId;
27
    /**
28
     * @var string
29
     */
30
    private $contractNumber;
31
    /**
32
     * @var DateTimeInterface
33
     */
34
    private $contractDate;
35
36
    /**
37
     * @param string $contactPerson
38
     * @param string $releaseMethodType
39
     * @param string $createMethodType
40
     * @param string $productionOrderId
41
     * @param string $contractNumber
42
     * @param DateTimeInterface $contractDate
43
     * @param OrderProduct[] $products
44
     */
45
    public function __construct(
46
        string $contactPerson,
47
        string $releaseMethodType,
48
        string $createMethodType,
49
        string $productionOrderId,
50
        string $contractNumber,
51
        DateTimeInterface $contractDate,
52
        array $products
53
    ) {
54
        parent::__construct($products);
55
56
        $this->contactPerson = $contactPerson;
57
        $this->releaseMethodType = $releaseMethodType;
58
        $this->createMethodType = $createMethodType;
59
        $this->productionOrderId = $productionOrderId;
60
        $this->contractNumber = $contractNumber;
61
        $this->contractDate = $contractDate;
62
    }
63
64
    public function getContactPerson(): string
65
    {
66
        return $this->contactPerson;
67
    }
68
69
    public function getReleaseMethodType(): string
70
    {
71
        return $this->releaseMethodType;
72
    }
73
74
    public function getCreateMethodType(): string
75
    {
76
        return $this->createMethodType;
77
    }
78
79
    public function getProductionOrderId(): string
80
    {
81
        return $this->productionOrderId;
82
    }
83
84
    public function getContractNumber(): string
85
    {
86
        return $this->contractNumber;
87
    }
88
89
    public function getContractDate(): DateTimeInterface
90
    {
91
        return $this->contractDate;
92
    }
93
}