Code Duplication    Length = 62-62 lines in 3 locations

src/V2/Dto/CreateOrderForEmissionICRequestLp.php 1 location

@@ 7-68 (lines=62) @@
4
5
namespace Lamoda\OmsClient\V2\Dto;
6
7
final class CreateOrderForEmissionICRequestLp extends CreateOrderForEmissionICRequest
8
{
9
    /**
10
     * @var string Контактное лицо
11
     */
12
    private $contactPerson;
13
    /**
14
     * @var string Способ выпуска товаров в оборот
15
     */
16
    private $releaseMethodType;
17
    /**
18
     * @var string Способ изготовления СИ
19
     */
20
    private $createMethodType;
21
    /**
22
     * @var string Идентификатор производственного заказа
23
     */
24
    private $productionOrderId;
25
26
    /**
27
     * @param string $contactPerson
28
     * @param string $releaseMethodType
29
     * @param string $createMethodType
30
     * @param string $productionOrderId
31
     * @param OrderProductLp[] $products
32
     */
33
    public function __construct(
34
        string $contactPerson,
35
        string $releaseMethodType,
36
        string $createMethodType,
37
        string $productionOrderId,
38
        array $products
39
    ) {
40
        parent::__construct($products);
41
42
        $this->contactPerson = $contactPerson;
43
        $this->releaseMethodType = $releaseMethodType;
44
        $this->createMethodType = $createMethodType;
45
        $this->productionOrderId = $productionOrderId;
46
    }
47
48
    public function getContactPerson(): string
49
    {
50
        return $this->contactPerson;
51
    }
52
53
    public function getReleaseMethodType(): string
54
    {
55
        return $this->releaseMethodType;
56
    }
57
58
    public function getCreateMethodType(): string
59
    {
60
        return $this->createMethodType;
61
    }
62
63
    public function getProductionOrderId(): string
64
    {
65
        return $this->productionOrderId;
66
    }
67
}

src/V2/Dto/CreateOrderForEmissionICRequestPerfum.php 1 location

@@ 7-68 (lines=62) @@
4
5
namespace Lamoda\OmsClient\V2\Dto;
6
7
final class CreateOrderForEmissionICRequestPerfum extends CreateOrderForEmissionICRequest
8
{
9
    /**
10
     * @var string Контактное лицо
11
     */
12
    private $contactPerson;
13
    /**
14
     * @var string Способ выпуска товаров в оборот
15
     */
16
    private $releaseMethodType;
17
    /**
18
     * @var string Способ изготовления СИ
19
     */
20
    private $createMethodType;
21
    /**
22
     * @var string Идентификатор производственного заказа
23
     */
24
    private $productionOrderId;
25
26
    /**
27
     * @param string $contactPerson
28
     * @param string $releaseMethodType
29
     * @param string $createMethodType
30
     * @param string $productionOrderId
31
     * @param OrderProductPerfum[] $products
32
     */
33
    public function __construct(
34
        string $contactPerson,
35
        string $releaseMethodType,
36
        string $createMethodType,
37
        string $productionOrderId,
38
        array $products
39
    ) {
40
        parent::__construct($products);
41
42
        $this->contactPerson = $contactPerson;
43
        $this->releaseMethodType = $releaseMethodType;
44
        $this->createMethodType = $createMethodType;
45
        $this->productionOrderId = $productionOrderId;
46
    }
47
48
    public function getContactPerson(): string
49
    {
50
        return $this->contactPerson;
51
    }
52
53
    public function getReleaseMethodType(): string
54
    {
55
        return $this->releaseMethodType;
56
    }
57
58
    public function getCreateMethodType(): string
59
    {
60
        return $this->createMethodType;
61
    }
62
63
    public function getProductionOrderId(): string
64
    {
65
        return $this->productionOrderId;
66
    }
67
}

src/V2/Dto/CreateOrderForEmissionICRequestShoes.php 1 location

@@ 7-68 (lines=62) @@
4
5
namespace Lamoda\OmsClient\V2\Dto;
6
7
final class CreateOrderForEmissionICRequestShoes extends CreateOrderForEmissionICRequest
8
{
9
    /**
10
     * @var string Контактное лицо
11
     */
12
    private $contactPerson;
13
    /**
14
     * @var string Способ выпуска товаров в оборот
15
     */
16
    private $releaseMethodType;
17
    /**
18
     * @var string Способ изготовления СИ
19
     */
20
    private $createMethodType;
21
    /**
22
     * @var string Идентификатор производственного заказа
23
     */
24
    private $productionOrderId;
25
26
    /**
27
     * @param string $contactPerson
28
     * @param string $releaseMethodType
29
     * @param string $createMethodType
30
     * @param string $productionOrderId
31
     * @param OrderProductShoes[] $products
32
     */
33
    public function __construct(
34
        string $contactPerson,
35
        string $releaseMethodType,
36
        string $createMethodType,
37
        string $productionOrderId,
38
        array $products
39
    ) {
40
        parent::__construct($products);
41
42
        $this->contactPerson = $contactPerson;
43
        $this->releaseMethodType = $releaseMethodType;
44
        $this->createMethodType = $createMethodType;
45
        $this->productionOrderId = $productionOrderId;
46
    }
47
48
    public function getContactPerson(): string
49
    {
50
        return $this->contactPerson;
51
    }
52
53
    public function getReleaseMethodType(): string
54
    {
55
        return $this->releaseMethodType;
56
    }
57
58
    public function getCreateMethodType(): string
59
    {
60
        return $this->createMethodType;
61
    }
62
63
    public function getProductionOrderId(): string
64
    {
65
        return $this->productionOrderId;
66
    }
67
}