Kanban / timesheet update
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Modules\TimeTracking\Domain\Contracts;
|
||||
|
||||
use DateTimeImmutable;
|
||||
|
||||
/**
|
||||
* Tasks each user has pinned to the "Lukitut työt" part of their time sheet.
|
||||
*/
|
||||
interface PinnedTaskRepository
|
||||
{
|
||||
public function pin(int $userId, int $taskId, DateTimeImmutable $at): void;
|
||||
|
||||
public function unpin(int $userId, int $taskId): void;
|
||||
|
||||
/**
|
||||
* @return int how many pins were removed
|
||||
*/
|
||||
public function unpinAll(int $userId): int;
|
||||
|
||||
/**
|
||||
* @return list<int>
|
||||
*/
|
||||
public function pinnedTaskIds(int $userId): array;
|
||||
}
|
||||
Reference in New Issue
Block a user