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

TrackingOperation   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 65
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
dl 0
loc 65
ccs 10
cts 10
cp 1
rs 10
c 1
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getAddressParameters() 0 3 1
A getOperationParameters() 0 3 1
A getUserParameters() 0 3 1
A getFinanceParameters() 0 3 1
A getItemParameters() 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 TrackingOperation
17
{
18
    /** @var TrackingOperationAddressParameters */
19
    private $AddressParameters;
20
21
    /** @var TrackingOperationFinanceParameters */
22
    private $FinanceParameters;
23
24
    /** @var TrackingOperationItemParameters */
25
    private $ItemParameters;
26
27
    /** @var TrackingOperationParameters */
28
    private $OperationParameters;
29
30
    /** @var TrackingOperationUserParameters */
31
    private $UserParameters;
32
33
    /**
34
     * Адресные данные операции (AddressParameters).
35
     *
36
     * @return TrackingOperationAddressParameters
37
     */
38 1
    public function getAddressParameters(): TrackingOperationAddressParameters
39
    {
40 1
        return $this->AddressParameters;
41
    }
42
43
    /**
44
     * Финансовые данные операции (FinanceParameters).
45
     *
46
     * @return TrackingOperationFinanceParameters
47
     */
48 1
    public function getFinanceParameters(): TrackingOperationFinanceParameters
49
    {
50 1
        return $this->FinanceParameters;
51
    }
52
53
    /**
54
     * Данные о почтовом отправлении (ItemParameters).
55
     *
56
     * @return TrackingOperationItemParameters
57
     */
58 1
    public function getItemParameters(): TrackingOperationItemParameters
59
    {
60 1
        return $this->ItemParameters;
61
    }
62
63
    /**
64
     * Параметры операции (OperationParameters).
65
     *
66
     * @return TrackingOperationParameters
67
     */
68 1
    public function getOperationParameters(): TrackingOperationParameters
69
    {
70 1
        return $this->OperationParameters;
71
    }
72
73
    /**
74
     * Данные субъектов, связанных с операцией (UserParameters).
75
     *
76
     * @return TrackingOperationUserParameters
77
     */
78 1
    public function getUserParameters(): TrackingOperationUserParameters
79
    {
80 1
        return $this->UserParameters;
81
    }
82
}
83