@@ -26,41 +26,57 @@ class PersonalInfo extends \Magento\Backend\Block\Template
26
26
const DEFAULT_ONLINE_MINUTES_INTERVAL = 15 ;
27
27
28
28
/**
29
+ * Customer
30
+ *
29
31
* @var \Magento\Customer\Api\Data\CustomerInterface
30
32
*/
31
33
protected $ customer ;
32
34
33
35
/**
36
+ * Customer log
37
+ *
34
38
* @var \Magento\Customer\Model\Log
35
39
*/
36
40
protected $ customerLog ;
37
41
38
42
/**
43
+ * Customer logger
44
+ *
39
45
* @var \Magento\Customer\Model\Logger
40
46
*/
41
47
protected $ customerLogger ;
42
48
43
49
/**
50
+ * Account management
51
+ *
44
52
* @var AccountManagementInterface
45
53
*/
46
54
protected $ accountManagement ;
47
55
48
56
/**
57
+ * Customer group repository
58
+ *
49
59
* @var \Magento\Customer\Api\GroupRepositoryInterface
50
60
*/
51
61
protected $ groupRepository ;
52
62
53
63
/**
64
+ * Customer data factory
65
+ *
54
66
* @var \Magento\Customer\Api\Data\CustomerInterfaceFactory
55
67
*/
56
68
protected $ customerDataFactory ;
57
69
58
70
/**
71
+ * Address helper
72
+ *
59
73
* @var \Magento\Customer\Helper\Address
60
74
*/
61
75
protected $ addressHelper ;
62
76
63
77
/**
78
+ * Date time
79
+ *
64
80
* @var \Magento\Framework\Stdlib\DateTime
65
81
*/
66
82
protected $ dateTime ;
@@ -73,11 +89,15 @@ class PersonalInfo extends \Magento\Backend\Block\Template
73
89
protected $ coreRegistry ;
74
90
75
91
/**
92
+ * Address mapper
93
+ *
76
94
* @var Mapper
77
95
*/
78
96
protected $ addressMapper ;
79
97
80
98
/**
99
+ * Data object helper
100
+ *
81
101
* @var \Magento\Framework\Api\DataObjectHelper
82
102
*/
83
103
protected $ dataObjectHelper ;
@@ -123,6 +143,8 @@ public function __construct(
123
143
}
124
144
125
145
/**
146
+ * Retrieve customer object
147
+ *
126
148
* @return \Magento\Customer\Api\Data\CustomerInterface
127
149
*/
128
150
public function getCustomer ()
@@ -138,6 +160,8 @@ public function getCustomer()
138
160
}
139
161
140
162
/**
163
+ * Retrieve customer id
164
+ *
141
165
* @return string|null
142
166
*/
143
167
public function getCustomerId ()
@@ -146,11 +170,11 @@ public function getCustomerId()
146
170
}
147
171
148
172
/**
149
- * Retrieves customer log.
173
+ * Retrieves customer log model
150
174
*
151
175
* @return \Magento\Customer\Model\Log
152
176
*/
153
- public function getCustomerLog ()
177
+ protected function getCustomerLog ()
154
178
{
155
179
if (!$ this ->customerLog ) {
156
180
$ this ->customerLog = $ this ->customerLogger ->get (
@@ -183,6 +207,8 @@ public function getStoreCreateDate()
183
207
}
184
208
185
209
/**
210
+ * Retrieve store default timezone from configuration
211
+ *
186
212
* @return string
187
213
*/
188
214
public function getStoreCreateDateTimezone ()
@@ -209,6 +235,8 @@ public function getCreateDate()
209
235
}
210
236
211
237
/**
238
+ * Check if account is confirmed
239
+ *
212
240
* @return \Magento\Framework\Phrase
213
241
*/
214
242
public function getIsConfirmedStatus ()
@@ -226,6 +254,8 @@ public function getIsConfirmedStatus()
226
254
}
227
255
228
256
/**
257
+ * Retrieve store
258
+ *
229
259
* @return null|string
230
260
*/
231
261
public function getCreatedInStore ()
@@ -236,6 +266,8 @@ public function getCreatedInStore()
236
266
}
237
267
238
268
/**
269
+ * Retrieve billing address html
270
+ *
239
271
* @return \Magento\Framework\Phrase|string
240
272
*/
241
273
public function getBillingAddressHtml ()
@@ -258,6 +290,8 @@ public function getBillingAddressHtml()
258
290
}
259
291
260
292
/**
293
+ * Retrieve group name
294
+ *
261
295
* @return string|null
262
296
*/
263
297
public function getGroupName ()
@@ -273,6 +307,8 @@ public function getGroupName()
273
307
}
274
308
275
309
/**
310
+ * Retrieve customer group by id
311
+ *
276
312
* @param int $groupId
277
313
* @return \Magento\Customer\Api\Data\GroupInterface|null
278
314
*/
0 commit comments