Files
onboard/app/Services/Reports/Contracts/ReportDefinition.php
2026-06-21 23:40:55 +09:00

25 lines
743 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace App\Services\Reports\Contracts;
use App\Models\Department;
use App\Services\DateRange;
use App\Services\Reports\ReportPayload;
interface ReportDefinition
{
public function code(): string;
public function label(): string;
/**
* Права, любое из которых открывает доступ к просмотру отчёта. Пустой массив —
* отчёт доступен всем, у кого есть общий доступ к отчётам (report.view или nurse.report.view).
*
* @return array<int,string>
*/
public function requiredPermissions(): array;
public function build(Department $department, DateRange $dateRange): ReportPayload;
}