Files
presensi/app/Config/Attendance.php
2026-03-05 14:37:36 +07:00

29 lines
630 B
PHP

<?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
/**
* Attendance configuration
*
* Attendance window: check-in is only allowed from (schedule start - open_before)
* until (schedule start + close_after). Outside this window → ABSENCE_WINDOW_CLOSED (no insert).
*/
class Attendance extends BaseConfig
{
/**
* Minutes before schedule start_time when attendance opens
*
* @var int
*/
public int $attendanceOpenBeforeMinutes = 5;
/**
* Minutes after schedule start_time when attendance closes
*
* @var int
*/
public int $attendanceCloseAfterMinutes = 15;
}