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

OrderDeliveryStatusCommitResponse::getError()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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