Model/ResourceModel/Order/Collection.php
public function getAllSentOrders($storeIds, $limit)
    {
        $collection = $this->addFieldToFilter('email_imported', 1)
            ->addFieldToFilter('store_id', ['in' => $storeIds]);

        $collection->getSelect()->limit($limit);

        return $collection->load();
    }
public function getAllSentOrders($storeIds, $limit)
    {
        $collection = $this->addFieldToFilter('email_imported', 1)
            ->addFieldToFilter('store_id', ['in' => $storeIds]);

        $collection->getSelect()->limit($limit);

        return $collection->load();
    }
public function getAllSentOrders ( $ storeIds , $ limit ) { $ collection = $ this -> addFieldToFilter ( 'email_imported' , 1 ) -> addFieldToFilter ( 'store_id' , [ 'in' => $ storeIds ] ) ; $ collection -> getSelect ( ) -> limit ( $ limit ) ; return $ collection -> load ( ) ; }
Get all sent orders.

@param array $storeIds
@param int $limit

@return $this
Get all sent orders .