Passed
Push — master ( b1e93f...10cd5c )
by Jhao
02:12
created

TrackingOperationFinanceParameters   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 91
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getMassRate() 0 3 1
A getDeclaredValue() 0 3 1
A getExtraRate() 0 3 1
A getInsuranceRate() 0 3 1
A getAirRate() 0 3 1
A getPayment() 0 3 1
A getCustomsDuty() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of RussianPost SDK package.
5
 *
6
 * © Appwilio (http://appwilio.com), greabock (https://github.com/greabock), JhaoDa (https://github.com/jhaoda)
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Appwilio\RussianPostSDK\Tracking\Single;
15
16
class TrackingOperationFinanceParameters
17
{
18
    /** @var int */
19
    private $Payment;
20
21
    /** @var int */
22
    private $Value;
23
24
    /** @var int */
25
    private $MassRate;
26
27
    /** @var int */
28
    private $InsrRate;
29
30
    /** @var int */
31
    private $AirRate;
32
33
    /** @var int */
34
    private $Rate;
35
36
    /** @var int */
37
    private $CustomDuty;
38
39
    /**
40
     * Сумма наложенного платежа в копейках.
41
     *
42
     * @return int
43
     */
44 1
    public function getPayment(): int
45
    {
46 1
        return $this->Payment;
47
    }
48
49
    /**
50
     * Сумма объявленной ценности в копейках.
51
     *
52
     * @return int
53
     */
54 1
    public function getDeclaredValue(): int
55
    {
56 1
        return $this->Value;
57
    }
58
59
    /**
60
     * Сумма платы за объявленную ценность в копейках.
61
     *
62
     * @return int
63
     */
64 1
    public function getInsuranceRate(): int
65
    {
66 1
        return $this->InsrRate;
67
    }
68
69
    /**
70
     * Общая сумма платы за пересылку наземным и воздушным транспортом в копейках.
71
     *
72
     * @return int
73
     */
74 1
    public function getMassRate(): int
75
    {
76 1
        return $this->MassRate;
77
    }
78
79
    /**
80
     * Выделенная сумма платы за пересылку воздушным транспортом из общей суммы платы за пересылку в копейках.
81
     *
82
     * @return int
83
     */
84 1
    public function getAirRate(): int
85
    {
86 1
        return $this->AirRate;
87
    }
88
89
    /**
90
     * Сумма дополнительного тарифного сбора в копейках.
91
     *
92
     * @return int
93
     */
94 1
    public function getExtraRate(): int
95
    {
96 1
        return $this->Rate;
97
    }
98
99
    /**
100
     * Сумма таможенного платежа в копейках.
101
     *
102
     * @return int
103
     */
104 1
    public function getCustomsDuty(): int
105
    {
106 1
        return $this->CustomDuty;
107
    }
108
}
109