30
30
use Magento \Framework \Exception \ValidatorException ;
31
31
32
32
/**
33
+ * Product Repository.
33
34
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
34
35
* @SuppressWarnings(PHPMD.TooManyFields)
35
36
*/
@@ -241,7 +242,7 @@ public function __construct(
241
242
}
242
243
243
244
/**
244
- * { @inheritdoc}
245
+ * @inheritdoc
245
246
*/
246
247
public function get ($ sku , $ editMode = false , $ storeId = null , $ forceReload = false )
247
248
{
@@ -271,7 +272,7 @@ public function get($sku, $editMode = false, $storeId = null, $forceReload = fal
271
272
}
272
273
273
274
/**
274
- * { @inheritdoc}
275
+ * @inheritdoc
275
276
*/
276
277
public function getById ($ productId , $ editMode = false , $ storeId = null , $ forceReload = false )
277
278
{
@@ -361,6 +362,8 @@ protected function initializeProductData(array $productData, $createNew)
361
362
}
362
363
363
364
/**
365
+ * Assign product to websites.
366
+ *
364
367
* @param \Magento\Catalog\Model\Product $product
365
368
* @return void
366
369
*/
@@ -376,6 +379,8 @@ private function assignProductToWebsites(\Magento\Catalog\Model\Product $product
376
379
}
377
380
378
381
/**
382
+ * Process new gallery media entry.
383
+ *
379
384
* @param ProductInterface $product
380
385
* @param array $newEntry
381
386
* @return $this
@@ -628,7 +633,7 @@ public function save(ProductInterface $product, $saveOptions = false)
628
633
}
629
634
630
635
/**
631
- * { @inheritdoc}
636
+ * @inheritdoc
632
637
*/
633
638
public function delete (ProductInterface $ product )
634
639
{
@@ -652,7 +657,7 @@ public function delete(ProductInterface $product)
652
657
}
653
658
654
659
/**
655
- * { @inheritdoc}
660
+ * @inheritdoc
656
661
*/
657
662
public function deleteById ($ sku )
658
663
{
@@ -661,7 +666,7 @@ public function deleteById($sku)
661
666
}
662
667
663
668
/**
664
- * { @inheritdoc}
669
+ * @inheritdoc
665
670
*/
666
671
public function getList (\Magento \Framework \Api \SearchCriteriaInterface $ searchCriteria )
667
672
{
@@ -784,6 +789,8 @@ private function determineImageRoles(ProductInterface $product, array $images) :
784
789
}
785
790
786
791
/**
792
+ * Retrieve media gallery processor.
793
+ *
787
794
* @return Product\Gallery\Processor
788
795
*/
789
796
private function getMediaGalleryProcessor ()
0 commit comments