Your IP : 127.0.0.1


Current Path : /home/dev2.destoffenstraat.com/app/code/Amasty/ImportCore/Api/Source/
Upload File :
Current File : /home/dev2.destoffenstraat.com/app/code/Amasty/ImportCore/Api/Source/SourceReaderInterface.php

<?php
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Import Core for Magento 2 (System)
 */

namespace Amasty\ImportCore\Api\Source;

use Amasty\ImportCore\Api\ImportProcessInterface;

interface SourceReaderInterface
{
    /**
     * Initialize source reader
     *
     * @param ImportProcessInterface $importProcess
     * @return void
     */
    public function initialize(ImportProcessInterface $importProcess);

    /**
     * Returns array with row data or false if end of file reached
     * @return array|bool
     */
    public function readRow();

    /**
     * @return int
     */
    public function estimateRecordsCount(): int;
}