oms-Exchange/Admin/Install/Interfaces/DatabaseExchanger/Exporter.php
Dennis Eichhorn b6903b53b6
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled
fix permissions
2025-04-02 14:15:05 +00:00

63 lines
1.3 KiB
PHP

<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Interfaces
* @copyright Dennis Eichhorn
* @license OMS License 2.2
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
namespace Modules\Exchange\Interface;
use Modules\Exchange\Models\ExporterAbstract;
use phpOMS\Message\RequestAbstract;
use phpOMS\Message\ResponseAbstract;
/**
* DB export class
*
* @package Modules\Exchange\Models\Interfaces\OMS
* @license OMS License 2.2
* @link https://jingga.app
* @since 1.0.0
*/
final class Exporter extends ExporterAbstract
{
use ExchangeTrait;
/**
* Export all data in time span
*
* @param array $data Export data
* @param \DateTime $start Start time (inclusive)
* @param \DateTime $end End time (inclusive)
*
* @return array
*
* @since 1.0.0
*/
public function export(array $data, \DateTime $start, \DateTime $end) : array
{
return [];
}
/**
* Export data from request
*
* @param RequestAbstract $request Request
*
* @return array
*
* @since 1.0.0
*/
public function exportFromRequest(RequestAbstract $request, ResponseAbstract $response) : array
{
return $this->exchangeFromRequest($request);
}
}