@@ -352,7 +352,7 @@ class Product extends \Magento\ImportExport\Model\Export\Entity\AbstractEntity
352
352
* @param \Magento\Framework\App\ResourceConnection $resource
353
353
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
354
354
* @param \Psr\Log\LoggerInterface $logger
355
- * @param \Magento\Catalog\Model\ResourceModel\Product\Collection $collection
355
+ * @param \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $collectionFactory
356
356
* @param \Magento\ImportExport\Model\Export\ConfigInterface $exportConfig
357
357
* @param \Magento\Catalog\Model\ResourceModel\ProductFactory $productFactory
358
358
* @param \Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\CollectionFactory $attrSetColFactory
@@ -361,9 +361,10 @@ class Product extends \Magento\ImportExport\Model\Export\Entity\AbstractEntity
361
361
* @param \Magento\Catalog\Model\ResourceModel\Product\Option\CollectionFactory $optionColFactory
362
362
* @param \Magento\Catalog\Model\ResourceModel\Product\Attribute\CollectionFactory $attributeColFactory
363
363
* @param Product\Type\Factory $_typeFactory
364
- * @param \Magento\Catalog\Model\Product \LinkTypeProvider $linkTypeProvider
365
- * @param \Magento\CatalogImportExport\Model\Export\ RowCustomizerInterface $rowCustomizer
364
+ * @param ProductEntity \LinkTypeProvider $linkTypeProvider
365
+ * @param RowCustomizerInterface $rowCustomizer
366
366
* @param array $dateAttrCodes
367
+ * @throws \Magento\Framework\Exception\LocalizedException
367
368
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
368
369
*/
369
370
public function __construct (
@@ -692,6 +693,8 @@ protected function updateDataWithCategoryColumns(&$dataRow, &$rowCategories, $pr
692
693
}
693
694
694
695
/**
696
+ * Get header columns
697
+ *
695
698
* {@inheritdoc}
696
699
*/
697
700
public function _getHeaderColumns ()
@@ -751,6 +754,8 @@ protected function _getExportMainAttrCodes()
751
754
}
752
755
753
756
/**
757
+ * Get entity collection
758
+ *
754
759
* {@inheritdoc}
755
760
*/
756
761
protected function _getEntityCollection ($ resetCollection = false )
@@ -821,9 +826,8 @@ protected function paginateCollection($page, $pageSize)
821
826
}
822
827
823
828
/**
824
- * Export process
825
- *
826
829
* @return string
830
+ * @throws \Magento\Framework\Exception\LocalizedException
827
831
*/
828
832
public function export ()
829
833
{
@@ -857,7 +861,11 @@ public function export()
857
861
}
858
862
859
863
/**
860
- * {@inheritdoc}
864
+ * Apply filter to collection and add not skipped attributes to select.
865
+ *
866
+ * @param \Magento\Eav\Model\Entity\Collection\AbstractCollection $collection
867
+ * @return \Magento\Eav\Model\Entity\Collection\AbstractCollection
868
+ *
861
869
* @since 100.2.0
862
870
*/
863
871
protected function _prepareEntityCollection (\Magento \Eav \Model \Entity \Collection \AbstractCollection $ collection )
@@ -919,11 +927,10 @@ protected function getExportData()
919
927
}
920
928
921
929
/**
922
- * Load products' data from the collection
923
- * and filter it (if needed).
930
+ * Load products' data from the collection and filter it (if needed).
924
931
*
925
- * @return array Keys are product IDs, values arrays with keys as store IDs
926
- * and values as store-specific versions of Product entity.
932
+ * @return array Keys are product IDs, values arrays with keys as store ID
933
+ * and values as store-specific versions of Product entity.
927
934
*/
928
935
protected function loadCollection (): array
929
936
{
0 commit comments