Completed
Pull Request — master (#195)
by
unknown
08:54
created

CartRequest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 46
ccs 6
cts 6
cp 1
rs 10
wmc 3
lcom 0
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getCurrency() 0 4 1
A getItems() 0 4 1
A getDelivery() 0 4 1
1
<?php
2
3
namespace Yandex\Market\Partner\Models;
4
5
use Yandex\Market\Partner\Models\Items;
6
use Yandex\Market\Partner\Models\Delivery;
7
use Yandex\Common\Model;
8
9
class CartRequest extends Model
10
{
11
12
    protected $currency = null;
13
14
    protected $items = null;
15
16
    protected $delivery = null;
17
18
    protected $mappingClasses = [
19
        'items' => 'Yandex\Market\Partner\Models\Items',
20
        'delivery' => 'Yandex\Market\Partner\Models\Delivery'
21
    ];
22
23
    protected $propNameMap = [];
24
25
    /**
26
     * Retrieve the currency property
27
     *
28
     * @return string|null
29
     */
30 1
    public function getCurrency()
31
    {
32 1
        return $this->currency;
33
    }
34
35
    /**
36
     * Retrieve the items property
37
     *
38
     * @return Items|null
39
     */
40 1
    public function getItems()
41
    {
42 1
        return $this->items;
43
    }
44
45
    /**
46
     * Retrieve the delivery property
47
     *
48
     * @return Delivery|null
49
     */
50 1
    public function getDelivery()
51
    {
52 1
        return $this->delivery;
53
    }
54
}
55