@@ -171,7 +171,14 @@ public function __construct(
171
171
}
172
172
173
173
/**
174
- * @inheritdoc
174
+ * Create or update a customer.
175
+ *
176
+ * @param \Magento\Customer\Api\Data\CustomerInterface $customer
177
+ * @param string $passwordHash
178
+ * @return \Magento\Customer\Api\Data\CustomerInterface
179
+ * @throws \Magento\Framework\Exception\InputException If bad input is provided
180
+ * @throws \Magento\Framework\Exception\State\InputMismatchException If the provided email is already used
181
+ * @throws \Magento\Framework\Exception\LocalizedException
175
182
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
176
183
* @SuppressWarnings(PHPMD.NPathComplexity)
177
184
*/
@@ -304,7 +311,13 @@ private function populateCustomerWithSecureData($customerModel, $passwordHash =
304
311
}
305
312
306
313
/**
307
- * @inheritdoc
314
+ * Retrieve customer.
315
+ *
316
+ * @param string $email
317
+ * @param int|null $websiteId
318
+ * @return \Magento\Customer\Api\Data\CustomerInterface
319
+ * @throws \Magento\Framework\Exception\NoSuchEntityException If customer with the specified email does not exist.
320
+ * @throws \Magento\Framework\Exception\LocalizedException
308
321
*/
309
322
public function get ($ email , $ websiteId = null )
310
323
{
@@ -313,7 +326,12 @@ public function get($email, $websiteId = null)
313
326
}
314
327
315
328
/**
316
- * @inheritdoc
329
+ * Get customer by Customer ID.
330
+ *
331
+ * @param int $customerId
332
+ * @return \Magento\Customer\Api\Data\CustomerInterface
333
+ * @throws \Magento\Framework\Exception\NoSuchEntityException If customer with the specified ID does not exist.
334
+ * @throws \Magento\Framework\Exception\LocalizedException
317
335
*/
318
336
public function getById ($ customerId )
319
337
{
@@ -322,7 +340,15 @@ public function getById($customerId)
322
340
}
323
341
324
342
/**
325
- * @inheritdoc
343
+ * Retrieve customers which match a specified criteria.
344
+ *
345
+ * This call returns an array of objects, but detailed information about each object’s attributes might not be
346
+ * included. See http://devdocs.magento.com/codelinks/attributes.html#CustomerRepositoryInterface to determine
347
+ * which call to use to get detailed information about all attributes for an object.
348
+ *
349
+ * @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
350
+ * @return \Magento\Customer\Api\Data\CustomerSearchResultsInterface
351
+ * @throws \Magento\Framework\Exception\LocalizedException
326
352
*/
327
353
public function getList (SearchCriteriaInterface $ searchCriteria )
328
354
{
@@ -362,15 +388,24 @@ public function getList(SearchCriteriaInterface $searchCriteria)
362
388
}
363
389
364
390
/**
365
- * @inheritdoc
391
+ * Delete customer.
392
+ *
393
+ * @param \Magento\Customer\Api\Data\CustomerInterface $customer
394
+ * @return bool true on success
395
+ * @throws \Magento\Framework\Exception\LocalizedException
366
396
*/
367
397
public function delete (CustomerInterface $ customer )
368
398
{
369
399
return $ this ->deleteById ($ customer ->getId ());
370
400
}
371
401
372
402
/**
373
- * @inheritdoc
403
+ * Delete customer by Customer ID.
404
+ *
405
+ * @param int $customerId
406
+ * @return bool true on success
407
+ * @throws \Magento\Framework\Exception\NoSuchEntityException
408
+ * @throws \Magento\Framework\Exception\LocalizedException
374
409
*/
375
410
public function deleteById ($ customerId )
376
411
{
0 commit comments