mirror of
https://github.com/Karaka-Management/oms-Exchange.git
synced 2026-01-19 12:28:41 +00:00
60 lines
1.1 KiB
PHP
60 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.2
|
|
*
|
|
* @package Interfaces
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://website.orange-management.de
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\Exchange\Models;
|
|
|
|
use phpOMS\DataStorage\Database\Connection\ConnectionInterface;
|
|
|
|
/**
|
|
* Import abstract
|
|
*
|
|
* @package Interfaces
|
|
* @license OMS License 1.0
|
|
* @link http://website.orange-management.de
|
|
* @since 1.0.0
|
|
*/
|
|
abstract class ImporterAbstract
|
|
{
|
|
/**
|
|
* Database connection.
|
|
*
|
|
* @var ConnectionInterface
|
|
* @since 1.0.0
|
|
*/
|
|
private $local = null;
|
|
|
|
/**
|
|
* Constructor
|
|
*
|
|
* @param ConnectionInterface $local Database connection
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function __construct(ConnectionInterface $local)
|
|
{
|
|
$this->remote = $remote;
|
|
}
|
|
|
|
/**
|
|
* Import data from request
|
|
*
|
|
* @param RequestAbstract $request Request
|
|
*
|
|
* @return bool
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
abstract public function importFromRequest(RequestAbstract $request) : bool;
|
|
}
|