Passed
Push — main ( 6bf038...55787e )
by Aleksandr
08:10
created

OrderDeliveryStatusCommitResponse   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 28
ccs 4
cts 4
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getStatus() 0 3 1
A getError() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DalliSDK\Responses;
6
7
use JMS\Serializer\Annotation as JMS;
8
9
/**
10
 * Ответ на коммит запроса получение только обновленных заказов
11
 *
12
 * @see https://api.dalli-service.com/v1/doc/cost-delivery
13
 * @JMS\XmlRoot("commitlaststatus")
14
 */
15
class OrderDeliveryStatusCommitResponse implements ResponseInterface
16
{
17
    /**
18
     * @JMS\XmlValue()
19
     * @JMS\Type("string")
20
     */
21
    private ?string $status = null;
22
23
    /**
24
     * @JMS\XmlAttribute()
25
     * @JMS\Type("int")
26
     */
27
    private ?int $error = null;
28
29
    /**
30
     * @return string|null
31
     */
32 1
    public function getStatus(): ?string
33
    {
34 1
        return $this->status;
35
    }
36
37
    /**
38
     * @return int|null
39
     */
40 1
    public function getError(): ?int
41
    {
42 1
        return $this->error;
43
    }
44
}
45