2021-04-05 16:23:06 +02:00
|
|
|
<?php
|
|
|
|
|
2021-09-20 01:08:42 +02:00
|
|
|
declare(strict_types=1);
|
2021-04-05 16:23:06 +02:00
|
|
|
|
2021-09-20 01:08:42 +02:00
|
|
|
namespace RprtCli\Utils\CsvReport;
|
2021-04-05 16:23:06 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Handles creating report data from csv file downloaded from youtrack service.
|
|
|
|
*/
|
2021-09-20 01:08:42 +02:00
|
|
|
interface CsvReportInterface
|
|
|
|
{
|
2021-04-05 16:23:06 +02:00
|
|
|
/**
|
|
|
|
* Returns array of hours per configured projects.
|
2021-09-20 01:08:42 +02:00
|
|
|
*
|
|
|
|
* @todo - get data from variable.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Project key as key and number of hours as value.
|
2021-04-05 16:23:06 +02:00
|
|
|
*/
|
2023-01-02 15:18:52 +01:00
|
|
|
public function getInvoiceData(string $filePath): array;
|
2021-10-02 03:52:07 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Data for default drunomics pdf export.
|
|
|
|
*
|
2022-12-20 23:36:07 +01:00
|
|
|
*
|
2021-10-02 03:52:07 +02:00
|
|
|
* Parsed data from csv report.
|
|
|
|
*/
|
2023-01-02 15:18:52 +01:00
|
|
|
public function arangeDataForDefaultPdfExport(array $data): array;
|
2021-04-05 16:23:06 +02:00
|
|
|
}
|