Files
mykopkb-be/Modules/Investment/Repositories/Contracts/InvestmentLimitProfileRepositoryInterface.php
T

29 lines
792 B
PHP

<?php
namespace Modules\Investment\Repositories\Contracts;
use Illuminate\Database\Eloquent\Collection;
use Modules\Investment\Entities\InvestmentLimitProfile;
interface InvestmentLimitProfileRepositoryInterface
{
public function getAllPaginated(int $perPage = 10, string $search = '');
public function getAllWithRelationsPaginated(
int $perPage = 10,
string $search = '',
string $sortBy = 'name',
string $sortOrder = 'asc'
);
public function getAllWithRelations(string $search = ''): Collection;
public function create(array $data): InvestmentLimitProfile;
public function findById(string $id): ?InvestmentLimitProfile;
public function delete(string $id): bool;
public function all(string $search = ''): Collection;
}