Перевод на доменную архитектуру
This commit is contained in:
13
app/Domain/Reports/Contracts/ReportRepository.php
Normal file
13
app/Domain/Reports/Contracts/ReportRepository.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\Reports\Contracts;
|
||||
|
||||
use App\Domain\Reports\Models\ReportSnapshot;
|
||||
use App\Domain\Reports\Models\SavedReportResult;
|
||||
|
||||
interface ReportRepository
|
||||
{
|
||||
public function save(ReportSnapshot $snapshot): SavedReportResult;
|
||||
|
||||
public function findSnapshot(int $reportId): ?ReportSnapshot;
|
||||
}
|
||||
Reference in New Issue
Block a user