Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BCrwHHnGCB5XH968Nxokqw
19 lines
720 B
PHP
19 lines
720 B
PHP
<?php
|
||
|
||
namespace App\Scheduling;
|
||
|
||
use Carbon\CarbonImmutable;
|
||
|
||
/** Окно доставки: внутри него ядро ищет момент, когда пользователь доступен. */
|
||
final class Window
|
||
{
|
||
public function __construct(
|
||
public readonly CarbonImmutable $start,
|
||
public readonly CarbonImmutable $end,
|
||
/** Разрешена ли доставка «во все каналы наугад», если никто не present. */
|
||
public readonly bool $fallbackAllowed,
|
||
/** С какого момента fallback срабатывает (конец окна минус запас). */
|
||
public readonly CarbonImmutable $fallbackAt,
|
||
) {}
|
||
}
|