123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace App\Shop\Addresses\Repositories\Interfaces;
- use App\Shop\Addresses\Address;
- use App\Shop\Cities\City;
- use App\Shop\Countries\Country;
- use App\Shop\Customers\Customer;
- use App\Shop\Provinces\Province;
- use Illuminate\Support\Collection;
- use Jsdecena\Baserepo\BaseRepositoryInterface;
- interface AddressRepositoryInterface extends BaseRepositoryInterface
- {
- public function createAddress(array $params) : Address;
- public function attachToCustomer(Address $address, Customer $customer);
- public function updateAddress(array $update): bool;
- public function deleteAddress();
- public function listAddress(string $order = 'id', string $sort = 'desc', array $columns = ['*']) : Collection;
- public function findAddressById(int $id) : Address;
- public function findCustomer() : Customer;
- public function searchAddress(string $text) : Collection;
- public function findCountry() : Country;
- public function findProvince() : Province;
- public function findCity() : City;
- }
|