Completed
Push — master ( caad37...82c5ce )
by Dmitriy
06:13
created

DeliveryMethod   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 66
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 20%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 5
c 2
b 0
f 1
lcom 0
cbo 1
dl 0
loc 66
ccs 2
cts 10
cp 0.2
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getServiceName() 0 4 1
A getPriceCurrency() 0 4 1
A getPriceValue() 0 4 1
A getSpeedFrom() 0 4 1
A getSpeedTo() 0 4 1
1
<?php
2
3
namespace Yandex\Market\Content\Models;
4
5
use Yandex\Common\Model;
6
7
class DeliveryMethod extends Model
8
{
9
    protected $serviceName = null;
10
11
    protected $priceCurrency = null;
12
13
    protected $priceValue = null;
14
15
    protected $speedFrom = null;
16
17
    protected $speedTo = null;
18
19
    protected $propNameMap = [
20
        'price' => 'priceValue',
21
    ];
22
23
    /**
24
     * Retrieve the serviceName property
25
     *
26
     * @return string|null
27
     */
28 3
    public function getServiceName()
29
    {
30 3
        return $this->serviceName;
31
    }
32
33
    /**
34
     * Retrieve the priceCurrency property
35
     *
36
     * @return string|null
37
     */
38
    public function getPriceCurrency()
39
    {
40
        return $this->priceCurrency;
41
    }
42
43
    /**
44
     * Retrieve the priceValue property
45
     *
46
     * @return int|null
47
     */
48
    public function getPriceValue()
49
    {
50
        return $this->priceValue;
51
    }
52
53
    /**
54
     * Retrieve the speedFrom property
55
     *
56
     * @return int|null
57
     */
58
    public function getSpeedFrom()
59
    {
60
        return $this->speedFrom;
61
    }
62
63
    /**
64
     * Retrieve the speedTo property
65
     *
66
     * @return int|null
67
     */
68
    public function getSpeedTo()
69
    {
70
        return $this->speedTo;
71
    }
72
}
73