Passed
Push — master ( 10cd5c...92ee40 )
by Jhao
02:18
created

TrackingEventFinanceParameters::getDeclaredValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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
final class TrackingEventFinanceParameters
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
     * Сумма наложенного платежа в копейках (Payment).
41
     *
42
     * @return int
43
     */
44 1
    public function getPayment(): int
45
    {
46 1
        return $this->Payment;
47
    }
48
49
    /**
50
     * Сумма объявленной ценности в копейках (Value).
51
     *
52
     * @return int
53
     */
54 1
    public function getDeclaredValue(): int
55
    {
56 1
        return $this->Value;
57
    }
58
59
    /**
60
     * Сумма платы за объявленную ценность в копейках (InsrRate).
61
     *
62
     * @return int
63
     */
64 1
    public function getInsuranceRate(): int
65
    {
66 1
        return $this->InsrRate;
67
    }
68
69
    /**
70
     * Общая сумма платы за пересылку наземным и воздушным транспортом в копейках (MassRate).
71
     *
72
     * @return int
73
     */
74 1
    public function getWeightRate(): int
75
    {
76 1
        return $this->MassRate;
77
    }
78
79
    /**
80
     * Выделенная сумма платы за пересылку воздушным транспортом из общей суммы платы за пересылку в копейках (AirRate).
81
     *
82
     * @return int
83
     */
84 1
    public function getAirRate(): int
85
    {
86 1
        return $this->AirRate;
87
    }
88
89
    /**
90
     * Сумма дополнительного тарифного сбора в копейках (Rate).
91
     *
92
     * @return int
93
     */
94 1
    public function getExtraRate(): int
95
    {
96 1
        return $this->Rate;
97
    }
98
99
    /**
100
     * Сумма таможенного платежа в копейках (CustomDuty).
101
     *
102
     * @return int
103
     */
104 1
    public function getCustomsDuty(): int
105
    {
106 1
        return $this->CustomDuty;
107
    }
108
}
109