Kanban / timesheet update
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Modules\TimeTracking\Application\DTOs;
|
||||
|
||||
use App\Modules\TimeTracking\Domain\Enums\EntryBillingModel;
|
||||
|
||||
/**
|
||||
* The user's entry on one task and day of the time sheet.
|
||||
*/
|
||||
final readonly class TimesheetCell
|
||||
{
|
||||
public function __construct(
|
||||
public int $quarters,
|
||||
public ?string $billingNote,
|
||||
public ?string $internalComment,
|
||||
public ?EntryBillingModel $billingModel,
|
||||
public bool $approved,
|
||||
) {}
|
||||
|
||||
public function hasBillingNote(): bool
|
||||
{
|
||||
return $this->billingNote !== null && trim($this->billingNote) !== '';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user