| 1234567891011121314151617181920 |
- <?php
- namespace App\Repositories;
- use App\DTO\CountryDTO;
- use Illuminate\Database\Eloquent\Collection;
- use App\Models\Country;
- interface CountryRepositoryInterface
- {
- public function all(): Collection;
- public function find(int $id): ?Country;
- public function create(CountryDTO $dto): Country;
- public function update(int $id, CountryDTO $dto, array $fieldsToUpdate): Country;
- public function delete(int $id): bool;
- }
|