Skip to content

Commit 32d6138

Browse files
committed
MAGETWO-34361: Pull request processing
1 parent 7eb3bc1 commit 32d6138

File tree

3 files changed

+48
-2
lines changed

3 files changed

+48
-2
lines changed

app/code/Magento/Customer/Block/Adminhtml/Edit/Tab/View/PersonalInfo.php

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,41 +26,57 @@ class PersonalInfo extends \Magento\Backend\Block\Template
2626
const DEFAULT_ONLINE_MINUTES_INTERVAL = 15;
2727

2828
/**
29+
* Customer
30+
*
2931
* @var \Magento\Customer\Api\Data\CustomerInterface
3032
*/
3133
protected $customer;
3234

3335
/**
36+
* Customer log
37+
*
3438
* @var \Magento\Customer\Model\Log
3539
*/
3640
protected $customerLog;
3741

3842
/**
43+
* Customer logger
44+
*
3945
* @var \Magento\Customer\Model\Logger
4046
*/
4147
protected $customerLogger;
4248

4349
/**
50+
* Account management
51+
*
4452
* @var AccountManagementInterface
4553
*/
4654
protected $accountManagement;
4755

4856
/**
57+
* Customer group repository
58+
*
4959
* @var \Magento\Customer\Api\GroupRepositoryInterface
5060
*/
5161
protected $groupRepository;
5262

5363
/**
64+
* Customer data factory
65+
*
5466
* @var \Magento\Customer\Api\Data\CustomerInterfaceFactory
5567
*/
5668
protected $customerDataFactory;
5769

5870
/**
71+
* Address helper
72+
*
5973
* @var \Magento\Customer\Helper\Address
6074
*/
6175
protected $addressHelper;
6276

6377
/**
78+
* Date time
79+
*
6480
* @var \Magento\Framework\Stdlib\DateTime
6581
*/
6682
protected $dateTime;
@@ -73,11 +89,15 @@ class PersonalInfo extends \Magento\Backend\Block\Template
7389
protected $coreRegistry;
7490

7591
/**
92+
* Address mapper
93+
*
7694
* @var Mapper
7795
*/
7896
protected $addressMapper;
7997

8098
/**
99+
* Data object helper
100+
*
81101
* @var \Magento\Framework\Api\DataObjectHelper
82102
*/
83103
protected $dataObjectHelper;
@@ -123,6 +143,8 @@ public function __construct(
123143
}
124144

125145
/**
146+
* Retrieve customer object
147+
*
126148
* @return \Magento\Customer\Api\Data\CustomerInterface
127149
*/
128150
public function getCustomer()
@@ -138,6 +160,8 @@ public function getCustomer()
138160
}
139161

140162
/**
163+
* Retrieve customer id
164+
*
141165
* @return string|null
142166
*/
143167
public function getCustomerId()
@@ -146,11 +170,11 @@ public function getCustomerId()
146170
}
147171

148172
/**
149-
* Retrieves customer log.
173+
* Retrieves customer log model
150174
*
151175
* @return \Magento\Customer\Model\Log
152176
*/
153-
public function getCustomerLog()
177+
protected function getCustomerLog()
154178
{
155179
if (!$this->customerLog) {
156180
$this->customerLog = $this->customerLogger->get(
@@ -183,6 +207,8 @@ public function getStoreCreateDate()
183207
}
184208

185209
/**
210+
* Retrieve store default timezone from configuration
211+
*
186212
* @return string
187213
*/
188214
public function getStoreCreateDateTimezone()
@@ -209,6 +235,8 @@ public function getCreateDate()
209235
}
210236

211237
/**
238+
* Check if account is confirmed
239+
*
212240
* @return \Magento\Framework\Phrase
213241
*/
214242
public function getIsConfirmedStatus()
@@ -226,6 +254,8 @@ public function getIsConfirmedStatus()
226254
}
227255

228256
/**
257+
* Retrieve store
258+
*
229259
* @return null|string
230260
*/
231261
public function getCreatedInStore()
@@ -236,6 +266,8 @@ public function getCreatedInStore()
236266
}
237267

238268
/**
269+
* Retrieve billing address html
270+
*
239271
* @return \Magento\Framework\Phrase|string
240272
*/
241273
public function getBillingAddressHtml()
@@ -258,6 +290,8 @@ public function getBillingAddressHtml()
258290
}
259291

260292
/**
293+
* Retrieve group name
294+
*
261295
* @return string|null
262296
*/
263297
public function getGroupName()
@@ -273,6 +307,8 @@ public function getGroupName()
273307
}
274308

275309
/**
310+
* Retrieve customer group by id
311+
*
276312
* @param int $groupId
277313
* @return \Magento\Customer\Api\Data\GroupInterface|null
278314
*/

app/code/Magento/Customer/Model/Log.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ public function __construct($customerId = null, $lastLoginAt = null, $lastVisitA
5555
}
5656

5757
/**
58+
* Retrieve customer id
59+
*
5860
* @return int
5961
*/
6062
public function getCustomerId()
@@ -63,6 +65,8 @@ public function getCustomerId()
6365
}
6466

6567
/**
68+
* Retrieve last login date as string
69+
*
6670
* @return string
6771
*/
6872
public function getLastLoginAt()
@@ -71,6 +75,8 @@ public function getLastLoginAt()
7175
}
7276

7377
/**
78+
* Retrieve last visit date as string
79+
*
7480
* @return string
7581
*/
7682
public function getLastVisitAt()
@@ -79,6 +85,8 @@ public function getLastVisitAt()
7985
}
8086

8187
/**
88+
* Retrieve last logout date as string
89+
*
8290
* @return string
8391
*/
8492
public function getLastLogoutAt()

app/code/Magento/Customer/Model/Logger.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ public function get($customerId = null)
8585
}
8686

8787
/**
88+
* Load customer log data by customer id
89+
*
8890
* @param int $customerId
8991
* @return array
9092
*/

0 commit comments

Comments
 (0)