28 lines
607 B
PHP
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);
|
|
}
|