Fix broken tests (H1), align interface signatures with implementations (H3), remove dead code (H4), add missing input guard (M1), replace raw $_SESSION access with SessionStoreInterface (M2), sync update script schema (M4), use shared getAppBase utility (L2), document fragment stripping (L3), and apply app- CSS class prefix convention (L5). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
27 lines
771 B
PHP
27 lines
771 B
PHP
<?php
|
|
|
|
namespace MintyPHP\Repository\User;
|
|
|
|
interface BookmarkGroupRepositoryInterface
|
|
{
|
|
/**
|
|
* @param array{limit?: int, offset?: int} $options
|
|
* @return list<array<string, mixed>>
|
|
*/
|
|
public function listByUser(int $userId, array $options = []): array;
|
|
|
|
public function countByUser(int $userId): int;
|
|
|
|
/** @return array<string, mixed>|false */
|
|
public function findById(int $id, int $userId): array|false;
|
|
|
|
public function create(array $data): int|false;
|
|
|
|
public function update(int $id, int $userId, array $data): bool;
|
|
|
|
public function delete(int $id, int $userId): bool;
|
|
|
|
/** @param list<array{id: int, sort_order: int}> $idOrderPairs */
|
|
public function updateSortOrders(int $userId, array $idOrderPairs): bool;
|
|
}
|