CountryRepositoryInterface.php 608 B

12345678910111213141516171819202122
  1. <?php
  2. namespace App\Shop\Countries\Repositories\Interfaces;
  3. use Jsdecena\Baserepo\BaseRepositoryInterface;
  4. use App\Shop\Countries\Country;
  5. use Illuminate\Support\Collection;
  6. interface CountryRepositoryInterface extends BaseRepositoryInterface
  7. {
  8. public function updateCountry(array $params) : Country;
  9. public function listCountries(string $order = 'id', string $sort = 'desc') : Collection;
  10. public function createCountry(array $params) : Country;
  11. public function findCountryById(int $id) : Country;
  12. public function findProvinces();
  13. public function listStates() : Collection;
  14. }