New-Thanasoft/thanasoft-back/app/Repositories/ClientLocationRepositoryInterface.php
2025-10-24 10:57:52 +03:00

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;
}