Model/ResourceModel/Contact/Collection.php
public function getMissingContacts($websiteId, $pageSize = 100)
    {
        $collection = $this->addFieldToFilter('contact_id', ['null' => true])
            ->addFieldToFilter('suppressed', ['null' => true])
            ->addFieldToFilter('website_id', $websiteId);

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

        return $collection->load();
    }
public function getMissingContacts($websiteId, $pageSize = 100)
    {
        $collection = $this->addFieldToFilter('contact_id', ['null' => true])
            ->addFieldToFilter('suppressed', ['null' => true])
            ->addFieldToFilter('website_id', $websiteId);

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

        return $collection->load();
    }
public function getMissingContacts ( $ websiteId , $ pageSize = 100 ) { $ collection = $ this -> addFieldToFilter ( 'contact_id' , [ 'null' => true ] ) -> addFieldToFilter ( 'suppressed' , [ 'null' => true ] ) -> addFieldToFilter ( 'website_id' , $ websiteId ) ; $ collection -> getSelect ( ) -> limit ( $ pageSize ) ; return $ collection -> load ( ) ; }
Get missing contacts.

@param int $websiteId
@param int $pageSize

@return $this
Get missing contacts .