1 | <?php |
||
31 | class Collection extends AbstractCollection |
||
32 | { |
||
33 | /** |
||
34 | * @var \LizardMedia\ProductAttachment\Model\ResourceModel\Db\Collection\EavAttributeJoiner |
||
35 | */ |
||
36 | private $eavAttributeJoiner; |
||
37 | |||
38 | |||
39 | /** |
||
40 | * @var \Magento\Framework\EntityManager\MetadataPool |
||
41 | */ |
||
42 | private $metadataPool; |
||
43 | |||
44 | |||
45 | /** |
||
46 | * @param \LizardMedia\ProductAttachment\Model\ResourceModel\Db\Collection\EavAttributeJoiner $eavAttributeJoiner |
||
47 | * @param \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy |
||
48 | * @param \Magento\Framework\Data\Collection\EntityFactoryInterface $entityFactory |
||
49 | * @param \Magento\Framework\Event\ManagerInterface $eventManager |
||
50 | * @param \Magento\Framework\EntityManager\MetadataPool $metadataPool |
||
51 | * @param \Psr\Log\LoggerInterface $logger |
||
52 | * @param \Magento\Framework\DB\Adapter\AdapterInterface | null $connection |
||
53 | * @param \Magento\Framework\Model\ResourceModel\Db\AbstractDb | null $resource |
||
54 | */ |
||
55 | public function __construct( |
||
77 | |||
78 | |||
79 | /** |
||
80 | * @return void |
||
81 | */ |
||
82 | protected function _construct() |
||
89 | |||
90 | |||
91 | /** |
||
92 | * @param array $productIds |
||
93 | * |
||
94 | * @throws \Exception |
||
95 | * |
||
96 | * @return \LizardMedia\ProductAttachment\Model\ResourceModel\Attachment\Collection |
||
97 | */ |
||
98 | public function addProductToFilter(array $productIds) : Collection |
||
108 | |||
109 | |||
110 | /** |
||
111 | * @param int $storeId |
||
112 | * |
||
113 | * @return \LizardMedia\ProductAttachment\Model\ResourceModel\Attachment\Collection $this |
||
114 | */ |
||
115 | public function addTitleToResult(int $storeId = 0) : Collection |
||
130 | |||
131 | |||
132 | |||
133 | /** |
||
134 | * @param int $storeId |
||
135 | * |
||
136 | * @throws \Magento\Framework\Exception\NoSuchEntityException |
||
137 | * @throws \Magento\Framework\Exception\LocalizedException |
||
138 | * |
||
139 | * @return \LizardMedia\ProductAttachment\Model\ResourceModel\Attachment\Collection $this |
||
140 | */ |
||
141 | public function joinProductTitle(int $storeId = 0) : Collection |
||
153 | } |
||
154 |