feat: due resolution and cascade math
Also: StoresUtc trait normalizes datetime casts to UTC (controller ruling). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BCrwHHnGCB5XH968Nxokqw
This commit is contained in:
16
core/app/Scheduling/Due.php
Normal file
16
core/app/Scheduling/Due.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Scheduling;
|
||||
|
||||
use Carbon\CarbonImmutable;
|
||||
|
||||
/** Срок события, приведённый к поясу пользователя. */
|
||||
final class Due
|
||||
{
|
||||
public function __construct(
|
||||
/** Локальная полночь дня срока. */
|
||||
public readonly CarbonImmutable $day,
|
||||
/** Момент срока. Для события «весь день» — следующая полночь. */
|
||||
public readonly CarbonImmutable $moment,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user