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]>
33 lines
783 B
PHP
33 lines
783 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Jobs\Application\DTOs;
|
|
|
|
use App\Modules\Jobs\Domain\Enums\TaskStatus;
|
|
|
|
/**
|
|
* A task with names resolved, for the job page and the task form.
|
|
*/
|
|
final readonly class TaskSummary
|
|
{
|
|
/**
|
|
* @param list<NamedId> $members
|
|
*/
|
|
public function __construct(
|
|
public int $id,
|
|
public int $jobId,
|
|
public string $title,
|
|
public ?string $description,
|
|
public TaskStatus $status,
|
|
public ?string $dueOn,
|
|
public ?string $estimatedHours,
|
|
public NamedId $workType,
|
|
public ?NamedId $assignee,
|
|
public array $members,
|
|
public ?string $plannedFrom = null,
|
|
public ?string $plannedTo = null,
|
|
public int $commentCount = 0,
|
|
) {}
|
|
}
|