Passed
Push — main ( 6bf038...578b82 )
by Aleksandr
03:45 queued 32s
created

EditBasketResponse   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getItem() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DalliSDK\Responses;
6
7
use DalliSDK\Models\OrderResponse;
8
use JMS\Serializer\Annotation as JMS;
9
10
/**
11
 * Сюда мапится ответ от запроса на редактирование заявки в корзине
12
 *
13
 * @see https://api.dalli-service.com/v1/doc/editbasket
14
 * @JMS\XmlRoot("editbasket")
15
 */
16
class EditBasketResponse implements ResponseInterface
17
{
18
    /**
19
     * @JMS\Type("DalliSDK\Models\OrderResponse")
20
     * @JMS\SerializedName("order")
21
     * @var OrderResponse
22
     */
23
    private OrderResponse $item;
24
25
    /**
26
     * @return OrderResponse
27
     */
28 2
    public function getItem(): OrderResponse
29
    {
30 2
        return $this->item;
31
    }
32
}
33