collectionProcessor = $collectionProcessor; $this->collectionFactory = $collectionFactory; } /** * @param \Magento\Catalog\Model\Category $category * @return Collection * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getCollection(\Magento\Catalog\Model\Category $category) : Collection { if (!$this->collection) { $this->collection = $this->collectionFactory->create(); } return $this->collection; } }