Model/AbandonedCart/ProgramEnrolment/Rules.php
public function apply($collection, $storeId)
    {
        $ruleModel = $this->rulesFactory->create();
        $websiteId = $this->helper->storeManager->getStore($storeId)
            ->getWebsiteId();
        return $ruleModel->process(
            $collection,
            \Dotdigitalgroup\Email\Model\Rules::ABANDONED,
            $websiteId
        );
    }
public function apply($collection, $storeId)
    {
        $ruleModel = $this->rulesFactory->create();
        $websiteId = $this->helper->storeManager->getStore($storeId)
            ->getWebsiteId();
        return $ruleModel->process(
            $collection,
            \Dotdigitalgroup\Email\Model\Rules::ABANDONED,
            $websiteId
        );
    }
public function apply ( $ collection , $ storeId ) { $ ruleModel = $ this -> rulesFactory -> create ( ) ; $ websiteId = $ this -> helper -> storeManager -> getStore ( $ storeId ) -> getWebsiteId ( ) ; return $ ruleModel -> process ( $ collection , \ Dotdigitalgroup \ Email \ Model \ Rules :: ABANDONED , $ websiteId ) ; }
Apply rules to sales collection

@param \Magento\Quote\Model\ResourceModel\Quote\Collection|\Magento\Sales\Model\ResourceModel\Order\Collection $collection
@param int $storeId

@return \Magento\Quote\Model\ResourceModel\Quote\Collection|\Magento\Sales\Model\ResourceModel\Order\Collection
@throws \Magento\Framework\Exception\NoSuchEntityException
Apply rules to sales collection