Test Failed
Pull Request — master (#3)
by
unknown
03:31
created

FacadeDocBodyResponse::getBody()   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
use Lamoda\IsmpClient\V3\Dto\FacadeDocBodyResponse\Body;
8
use Symfony\Component\Serializer\Annotation\SerializedName;
9
10
final class FacadeDocBodyResponse
11
{
12
    public const STATUS_IN_PROGRESS = 'IN_PROGRESS';
13
    public const STATUS_CHECKED_NOT_OK = 'CHECKED_NOT_OK';
14
    public const STATUS_PROCESSING_ERROR = 'PROCESSING_ERROR';
15
    public const STATUS_CHECKED_OK = 'CHECKED_OK';
16
17
    /**
18
     * @var string
19
     */
20
    private $number;
21
    /**
22
     * @var string
23
     *
24
     * @SerializedName("docDate")
25
     */
26
    private $docDate;
27
    /**
28
     * @var string
29
     */
30
    private $type;
31
    /**
32
     * @var string
33
     */
34
    private $status;
35
    /**
36
     * @var string
37
     *
38
     * @SerializedName("senderName")
39
     */
40
    private $senderName;
41
    /**
42
     * @var string
43
     */
44
    private $content;
45
    /**
46
     * @var Body|null
47
     */
48
    private $body;
49
    /**
50
     * @var array|null
51
     */
52
    private $errors;
53
54
    public function __construct(
55
        string $number,
56
        string $docDate,
57
        string $type,
58
        string $status,
59
        string $senderName,
60
        string $content,
61
        ?Body $body = null
62
    ) {
63
        $this->number = $number;
64
        $this->docDate = $docDate;
65
        $this->type = $type;
66
        $this->status = $status;
67
        $this->senderName = $senderName;
68
        $this->content = $content;
69
        $this->body = $body;
70
    }
71
72
    public function getNumber(): string
73
    {
74
        return $this->number;
75
    }
76
77
    public function getDocDate(): string
78
    {
79
        return $this->docDate;
80
    }
81
82
    public function getType(): string
83
    {
84
        return $this->type;
85
    }
86
87
    public function getStatus(): string
88
    {
89
        return $this->status;
90
    }
91
92
    public function getSenderName(): string
93
    {
94
        return $this->senderName;
95
    }
96
97
    public function getContent(): string
98
    {
99
        return $this->content;
100
    }
101
102
    public function getBody(): ?Body
103
    {
104
        return $this->body;
105
    }
106
107
    public function getErrors(): ?array
108
    {
109
        return $this->errors;
110
    }
111
112
    public function setErrors(?array $errors)
113
    {
114
        $this->errors = $errors;
115
    }
116
}
117