@@ -18,7 +18,7 @@ class SaveHandler
1818 /**
1919 * @var ProductLinkRepositoryInterface
2020 */
21- protected $ productLinkRepo ;
21+ protected $ productLinkRepository ;
2222
2323 /**
2424 * @var MetadataPool
@@ -39,18 +39,18 @@ class SaveHandler
3939 * SaveHandler constructor.
4040 * @param MetadataPool $metadataPool
4141 * @param Link $linkResource
42- * @param ProductLinkRepositoryInterface $productLinkRepo
42+ * @param ProductLinkRepositoryInterface $productLinkRepository
4343 * @param \Magento\Catalog\Model\Product\LinkTypeProvider $linkTypeProvider
4444 */
4545 public function __construct (
4646 MetadataPool $ metadataPool ,
4747 Link $ linkResource ,
48- ProductLinkRepositoryInterface $ productLinkRepo ,
48+ ProductLinkRepositoryInterface $ productLinkRepository ,
4949 \Magento \Catalog \Model \Product \LinkTypeProvider $ linkTypeProvider
5050 ) {
5151 $ this ->metadataPool = $ metadataPool ;
5252 $ this ->linkResource = $ linkResource ;
53- $ this ->productLinkRepo = $ productLinkRepo ;
53+ $ this ->productLinkRepository = $ productLinkRepository ;
5454 $ this ->linkTypeProvider = $ linkTypeProvider ;
5555 }
5656
@@ -65,8 +65,8 @@ public function execute($entityType, $entity)
6565 $ link = $ entity ->getData ($ this ->metadataPool ->getMetadata ($ entityType )->getLinkField ());
6666 if ($ this ->linkResource ->hasProductLinks ($ link )) {
6767 /** @var \Magento\Catalog\Api\Data\ProductInterface $entity */
68- foreach ($ this ->productLinkRepo ->getList ($ entity ) as $ link ) {
69- $ this ->productLinkRepo ->delete ($ link );
68+ foreach ($ this ->productLinkRepository ->getList ($ entity ) as $ link ) {
69+ $ this ->productLinkRepository ->delete ($ link );
7070 }
7171 }
7272 $ productLinks = $ entity ->getProductLinks ();
@@ -94,7 +94,7 @@ public function execute($entityType, $entity)
9494
9595 if (count ($ productLinks ) > 0 ) {
9696 foreach ($ entity ->getProductLinks () as $ link ) {
97- $ this ->productLinkRepo ->save ($ link );
97+ $ this ->productLinkRepository ->save ($ link );
9898 }
9999 }
100100 return $ entity ;
0 commit comments