Модуль отчетов
This commit is contained in:
16
app/Services/Reports/ReportSection.php
Normal file
16
app/Services/Reports/ReportSection.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services\Reports;
|
||||
|
||||
readonly class ReportSection
|
||||
{
|
||||
/**
|
||||
* @param array<string,string> $columns ключ колонки => подпись
|
||||
* @param array<int,array<string,mixed>> $rows строки данных, ключи соответствуют ключам $columns
|
||||
*/
|
||||
public function __construct(
|
||||
public string $title,
|
||||
public array $columns,
|
||||
public array $rows,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user