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

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