Price   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 62
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 60%

Importance

Changes 0
Metric Value
dl 0
loc 62
ccs 6
cts 10
cp 0.6
rs 10
c 0
b 0
f 0
wmc 5
lcom 0
cbo 1

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getCurrencyName() 0 4 1
A getCurrencyCode() 0 4 1
A getDiscount() 0 4 1
A getBase() 0 4 1
A getValue() 0 4 1
1
<?php
2
3
namespace Yandex\Market\Content\Models\Base;
4
5
use Yandex\Common\Model;
6
7
class Price extends Model
8
{
9
    protected $currencyName = null;
10
11
    protected $currencyCode = null;
12
13
    protected $discount = null;
14
15
    protected $base = null;
16
17
    protected $value = null;
18
19
    /**
20
     * Retrieve the currencyName property
21
     *
22
     * @return string|null
23
     */
24 9
    public function getCurrencyName()
25
    {
26 9
        return $this->currencyName;
27
    }
28
29
    /**
30
     * Retrieve the currencyCode property
31
     *
32
     * @return string|null
33
     */
34 9
    public function getCurrencyCode()
35
    {
36 9
        return $this->currencyCode;
37
    }
38
39
    /**
40
     * Retrieve the discount property
41
     *
42
     * @return string|null
43
     */
44
    public function getDiscount()
45
    {
46
        return $this->discount;
47
    }
48
49
    /**
50
     * Retrieve the base property
51
     *
52
     * @return string|null
53
     */
54
    public function getBase()
55
    {
56
        return $this->base;
57
    }
58
59
    /**
60
     * Retrieve the base property
61
     *
62
     * @return string|null
63
     */
64 5
    public function getValue()
65
    {
66 5
        return $this->value;
67
    }
68
}
69