1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace DalliSDK\Models; |
||
6 | |||
7 | use DalliSDK\Traits\Fillable; |
||
8 | use JMS\Serializer\Annotation as JMS; |
||
9 | |||
10 | /** |
||
11 | * Контейнер информации об отправителе |
||
12 | * |
||
13 | * @see https://api.dalli-service.com/v1/doc/request-delivery-status |
||
14 | * @JMS\XmlRoot("sender") |
||
15 | */ |
||
16 | class Sender |
||
17 | { |
||
18 | use Fillable; |
||
19 | |||
20 | /** |
||
21 | * Контактное лицо отправителя |
||
22 | * @see Receiver::$person |
||
23 | * |
||
24 | * @JMS\Type("string") |
||
25 | * @JMS\SerializedName("company") |
||
26 | */ |
||
27 | private ?string $company = null; |
||
28 | |||
29 | /** |
||
30 | * Город отправителя |
||
31 | * |
||
32 | * @JMS\Type("string") |
||
33 | * @JMS\SerializedName("town") |
||
34 | * |
||
35 | * @deprecated deprecated since version 1.4.0 |
||
36 | */ |
||
37 | private ?string $town = null; |
||
38 | |||
39 | /** |
||
40 | * Адрес отправителя |
||
41 | * |
||
42 | * @JMS\Type("string") |
||
43 | * @JMS\SerializedName("address") |
||
44 | */ |
||
45 | private ?string $address = null; |
||
46 | |||
47 | /** |
||
48 | * Контактное лицо отправителя |
||
49 | * |
||
50 | * @JMS\Type("string") |
||
51 | * @JMS\SerializedName("person") |
||
52 | */ |
||
53 | private ?string $person = null; |
||
54 | |||
55 | /** |
||
56 | * Телефон |
||
57 | * |
||
58 | * @JMS\Type("string") |
||
59 | * @JMS\SerializedName("phone") |
||
60 | */ |
||
61 | private ?string $phone = null; |
||
62 | |||
63 | /** |
||
64 | * @return string|null |
||
65 | */ |
||
66 | 2 | public function getCompany(): ?string |
|
67 | { |
||
68 | 2 | return $this->company; |
|
69 | } |
||
70 | |||
71 | /** |
||
72 | * @return string|null |
||
73 | */ |
||
74 | 2 | public function getTown(): ?string |
|
75 | { |
||
76 | 2 | return $this->town; |
|
0 ignored issues
–
show
|
|||
77 | } |
||
78 | |||
79 | /** |
||
80 | * @return string|null |
||
81 | */ |
||
82 | 2 | public function getAddress(): ?string |
|
83 | { |
||
84 | 2 | return $this->address; |
|
85 | } |
||
86 | |||
87 | /** |
||
88 | * @return string|null |
||
89 | */ |
||
90 | 2 | public function getPerson(): ?string |
|
91 | { |
||
92 | 2 | return $this->person; |
|
93 | } |
||
94 | |||
95 | /** |
||
96 | * @return string|null |
||
97 | */ |
||
98 | 2 | public function getPhone(): ?string |
|
99 | { |
||
100 | 2 | return $this->phone; |
|
101 | } |
||
102 | } |
||
103 |
This property has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.