1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Inspirum\Balikobot\Model\Values\Package; |
4
|
|
|
|
5
|
|
|
use Inspirum\Balikobot\Definitions\Option; |
6
|
|
|
|
7
|
|
|
trait CustomerData |
8
|
|
|
{ |
9
|
|
|
/** |
10
|
|
|
* Set the item at a given offset. |
11
|
|
|
* |
12
|
|
|
* @param string $key |
13
|
|
|
* @param mixed $value |
14
|
|
|
* |
15
|
|
|
* @return void |
16
|
|
|
*/ |
17
|
|
|
abstract public function offsetSet($key, $value); |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* @param string $name |
21
|
|
|
* |
22
|
|
|
* @return void |
23
|
|
|
*/ |
24
|
2 |
|
public function setRecName(string $name): void |
25
|
|
|
{ |
26
|
2 |
|
$this->offsetSet(Option::REC_NAME, $name); |
27
|
2 |
|
} |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @param string $firm |
31
|
|
|
* |
32
|
|
|
* @return void |
33
|
|
|
*/ |
34
|
1 |
|
public function setRecFirm(string $firm): void |
35
|
|
|
{ |
36
|
1 |
|
$this->offsetSet(Option::REC_FIRM, $firm); |
37
|
1 |
|
} |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @param string $street |
41
|
|
|
* |
42
|
|
|
* @return void |
43
|
|
|
*/ |
44
|
2 |
|
public function setRecStreet(string $street): void |
45
|
|
|
{ |
46
|
2 |
|
$this->offsetSet(Option::REC_STREET, $street); |
47
|
2 |
|
} |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @param string $city |
51
|
|
|
* |
52
|
|
|
* @return void |
53
|
|
|
*/ |
54
|
2 |
|
public function setRecCity(string $city): void |
55
|
|
|
{ |
56
|
2 |
|
$this->offsetSet(Option::REC_CITY, $city); |
57
|
2 |
|
} |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @param string $zip |
61
|
|
|
* |
62
|
|
|
* @return void |
63
|
|
|
*/ |
64
|
2 |
|
public function setRecZip(string $zip): void |
65
|
|
|
{ |
66
|
2 |
|
$this->offsetSet(Option::REC_ZIP, $zip); |
67
|
2 |
|
} |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @param string $recRegion |
71
|
|
|
* |
72
|
|
|
* @return void |
73
|
|
|
*/ |
74
|
1 |
|
public function setRecRegion(string $recRegion): void |
75
|
|
|
{ |
76
|
1 |
|
$this->offsetSet(Option::REC_REGION, $recRegion); |
77
|
1 |
|
} |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @param string $country |
81
|
|
|
* |
82
|
|
|
* @return void |
83
|
|
|
*/ |
84
|
2 |
|
public function setRecCountry(string $country): void |
85
|
|
|
{ |
86
|
2 |
|
$this->offsetSet(Option::REC_COUNTRY, $country); |
87
|
2 |
|
} |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* @param string $localeId |
91
|
|
|
* |
92
|
|
|
* @return void |
93
|
|
|
*/ |
94
|
1 |
|
public function setRecLocaleId(string $localeId): void |
95
|
|
|
{ |
96
|
1 |
|
$this->offsetSet(Option::REC_LOCALE_ID, $localeId); |
97
|
1 |
|
} |
98
|
|
|
|
99
|
|
|
/** |
100
|
|
|
* @param string $email |
101
|
|
|
* |
102
|
|
|
* @return void |
103
|
|
|
*/ |
104
|
1 |
|
public function setRecEmail(string $email): void |
105
|
|
|
{ |
106
|
1 |
|
$this->offsetSet(Option::REC_EMAIL, $email); |
107
|
1 |
|
} |
108
|
|
|
|
109
|
|
|
/** |
110
|
|
|
* @param string $phone |
111
|
|
|
* |
112
|
|
|
* @return void |
113
|
|
|
*/ |
114
|
2 |
|
public function setRecPhone(string $phone): void |
115
|
|
|
{ |
116
|
2 |
|
$this->offsetSet(Option::REC_PHONE, $phone); |
117
|
2 |
|
} |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* @param string $bankAccount |
121
|
|
|
* |
122
|
|
|
* @return void |
123
|
|
|
*/ |
124
|
1 |
|
public function setBankAccountNumber(string $bankAccount): void |
125
|
|
|
{ |
126
|
1 |
|
$this->offsetSet(Option::BANK_ACCOUNT_NUMBER, $bankAccount); |
127
|
1 |
|
} |
128
|
|
|
|
129
|
|
|
/** |
130
|
|
|
* @param string $recNamePatronymum |
131
|
|
|
* |
132
|
|
|
* @return void |
133
|
|
|
*/ |
134
|
1 |
|
public function setRecNamePatronymum(string $recNamePatronymum): void |
135
|
|
|
{ |
136
|
1 |
|
$this->offsetSet(Option::REC_NAME_PATRONYMUM, $recNamePatronymum); |
137
|
1 |
|
} |
138
|
|
|
} |
139
|
|
|
|