CountryRepositoryInterface.php 442 B

1234567891011121314151617181920
  1. <?php
  2. namespace App\Repositories;
  3. use App\DTO\CountryDTO;
  4. use Illuminate\Database\Eloquent\Collection;
  5. use App\Models\Country;
  6. interface CountryRepositoryInterface
  7. {
  8. public function all(): Collection;
  9. public function find(int $id): ?Country;
  10. public function create(CountryDTO $dto): Country;
  11. public function update(int $id, CountryDTO $dto, array $fieldsToUpdate): Country;
  12. public function delete(int $id): bool;
  13. }