21 lines
578 B
PHP
21 lines
578 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Repositories;
|
|
use App\Models\ClientLocation;
|
|
use Illuminate\Pagination\LengthAwarePaginator;
|
|
|
|
interface ClientLocationRepositoryInterface extends BaseRepositoryInterface
|
|
{
|
|
function getByClientId(int $client_id);
|
|
|
|
function getPaginated(array $filters = [], int $perPage = 10);
|
|
|
|
function getPaginatedByClientId(int $clientId, array $filters = [], int $perPage = 10): LengthAwarePaginator;
|
|
|
|
function getDefaultByClientId(int $clientId): ?ClientLocation;
|
|
|
|
function setAsDefault(int $locationId): ClientLocation;
|
|
}
|