New-Thanasoft/thanasoft-back/app/Repositories/ClientActivityTimelineRepositoryInterface.php
2026-01-12 16:37:41 +03:00

28 lines
607 B
PHP

<?php
declare(strict_types=1);
namespace App\Repositories;
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
interface ClientActivityTimelineRepositoryInterface extends BaseRepositoryInterface
{
/**
* Get paginated timeline for a specific client
*
* @param int $clientId
* @param int $perPage
* @return LengthAwarePaginator
*/
public function getByClient(int $clientId, int $perPage = 15): LengthAwarePaginator;
/**
* Log a new activity
*
* @param array $data
* @return mixed
*/
public function logActivity(array $data);
}