Passed
Push — master ( 90a5eb...23c09d )
by
unknown
47s queued 11s
created

OrderProductPerfum   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getCisType() 0 4 1
A getExporterTaxpayerId() 0 4 1
A setExporterTaxpayerId() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Lamoda\OmsClient\V2\Dto;
6
7
final class OrderProductPerfum extends OrderProduct
8
{
9
    /**
10
     * @var string Тип кода маркировки
11
     */
12
    private $cisType;
13
14
    /**
15
     * @var string ИНН/УНБ (или аналог) экспортера (становится обязательным, если поле releaseMethod =  «CROSSBORDER»)
16
     */
17
    private $exporterTaxpayerId;
18
19
20
    public function __construct(string $gtin, int $quantity, string $serialNumberType, int $templateId, string $cisType)
21
    {
22
        parent::__construct($gtin, $quantity, $serialNumberType, $templateId);
23
24
        $this->cisType = $cisType;
25
    }
26
27
    public function getCisType(): string
28
    {
29
        return $this->cisType;
30
    }
31
32
    public function getExporterTaxpayerId(): ?string
33
    {
34
        return $this->exporterTaxpayerId;
35
    }
36
37
    public function setExporterTaxpayerId(?string $exporterTaxpayerId): void
38
    {
39
        $this->exporterTaxpayerId = $exporterTaxpayerId;
40
    }
41
}