Files
Toiminnanohjaus/app/Modules/Jobs/Application/Contracts/TaskCommentQueries.php
T
petriandClaude Sonnet 5.5 4fb8ea1c5f Add comments to tasks
Everyone who may change a task's status (attached subcontractors too)
comments on it on the job page. Authors edit and remove their own
comments; admin and management may remove anyone's
(jobs.remove-any-task-comment). Edited comments show when they were
edited, and task cards show the number of comments.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-25 07:31:53 +02:00

19 lines
396 B
PHP

<?php
declare(strict_types=1);
namespace App\Modules\Jobs\Application\Contracts;
use App\Modules\Jobs\Application\DTOs\TaskCommentSummary;
interface TaskCommentQueries
{
/**
* The task's comments, oldest first; empty when the task belongs to
* another job.
*
* @return list<TaskCommentSummary>
*/
public function commentsOf(int $jobId, int $taskId): array;
}