27 lines
620 B
PHP
27 lines
620 B
PHP
<?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) !== '';
|
|
}
|
|
}
|