|
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 TrackingEventAddressParameters |
|
17
|
|
|
{ |
|
18
|
|
|
/** @var TrackingEventAddress */ |
|
19
|
|
|
private $DestinationAddress; |
|
20
|
|
|
|
|
21
|
|
|
/** @var TrackingEventAddress */ |
|
22
|
|
|
private $OperationAddress; |
|
23
|
|
|
|
|
24
|
|
|
/** @var TrackingEventCountry */ |
|
25
|
|
|
private $MailDirect; |
|
26
|
|
|
|
|
27
|
|
|
/** @var TrackingEventCountry */ |
|
28
|
|
|
private $CountryOper; |
|
29
|
|
|
|
|
30
|
|
|
/** @var TrackingEventCountry */ |
|
31
|
|
|
private $CountryFrom; |
|
32
|
|
|
|
|
33
|
|
|
/** |
|
34
|
|
|
* Адресные данные места назначения (DestinationAddress). |
|
35
|
|
|
* |
|
36
|
|
|
* @return TrackingEventAddress |
|
37
|
|
|
*/ |
|
38
|
1 |
|
public function getDestinationAddress(): TrackingEventAddress |
|
39
|
|
|
{ |
|
40
|
1 |
|
return $this->DestinationAddress; |
|
41
|
|
|
} |
|
42
|
|
|
|
|
43
|
|
|
/** |
|
44
|
|
|
* Адресные данные места проведения операции (OperationAddress). |
|
45
|
|
|
* |
|
46
|
|
|
* @return TrackingEventAddress |
|
47
|
|
|
*/ |
|
48
|
1 |
|
public function getOperationAddress(): TrackingEventAddress |
|
49
|
|
|
{ |
|
50
|
1 |
|
return $this->OperationAddress; |
|
51
|
|
|
} |
|
52
|
|
|
|
|
53
|
|
|
/** |
|
54
|
|
|
* Страна места назначения (MailDirect). |
|
55
|
|
|
* |
|
56
|
|
|
* @return TrackingEventCountry |
|
57
|
|
|
*/ |
|
58
|
1 |
|
public function getDestinationCountry(): TrackingEventCountry |
|
59
|
|
|
{ |
|
60
|
1 |
|
return $this->MailDirect; |
|
61
|
|
|
} |
|
62
|
|
|
|
|
63
|
|
|
/** |
|
64
|
|
|
* Страна приема (CountryFrom). |
|
65
|
|
|
* |
|
66
|
|
|
* @return TrackingEventCountry |
|
67
|
|
|
*/ |
|
68
|
1 |
|
public function getDepartureCountry(): TrackingEventCountry |
|
69
|
|
|
{ |
|
70
|
1 |
|
return $this->CountryFrom; |
|
71
|
|
|
} |
|
72
|
|
|
|
|
73
|
|
|
/** |
|
74
|
|
|
* Страна проведения операции (CountryOper). |
|
75
|
|
|
* |
|
76
|
|
|
* @return TrackingEventCountry |
|
77
|
|
|
*/ |
|
78
|
1 |
|
public function getOperationCountry(): TrackingEventCountry |
|
79
|
|
|
{ |
|
80
|
1 |
|
return $this->CountryOper; |
|
81
|
|
|
} |
|
82
|
|
|
} |
|
83
|
|
|
|