<?php

namespace FiloBlu\Flow\Model;

use Magento\Framework\Data\Collection\AbstractDb;
use Magento\Framework\Model\AbstractModel;
use Magento\Framework\Model\Context;
use Magento\Framework\Model\ResourceModel\AbstractResource;
use Magento\Framework\Registry;

class TableFlow extends \FiloBlu\Flow\Model\From\AbstractFrom
{
    /**
     * @var string
     */
    const STATUS_RECEIVED = 'received';

    /**
     * @var string
     */
    const STATUS_PROCESSED = 'processed';

    /**
     * @var string
     */
    const STATUS_PARSED = 'parsed';

    /**
     * @var string
     */
    const STATUS_ERROR = 'error';

    /**
     * @param Context $context
     * @param Registry $registry
     * @param AbstractResource|null $resource
     * @param AbstractDb|null $resourceCollection
     * @param array $data
     */
    public function __construct(
        Context $context ,
        Registry $registry ,
        AbstractResource $resource = null ,
        AbstractDb $resourceCollection = null ,
        array $data = []
    )
    {
        parent::__construct($context , $registry , $resource , $resourceCollection , $data);
    }

    public function _construct() {
        $this->_init(ResourceModel\TableFlow::class);
    }


    public function process()
    {

    }

    public function sendErrorNotifications($file)
    {

    }
}
