HEX
Server: LiteSpeed
System: Linux houston.panomity.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: nudepix (1011)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //home/timetracker.panomity.com/src/API/Model/TimesheetConfig.php
<?php

/*
 * This file is part of the Kimai time-tracking app.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace App\API\Model;

use JMS\Serializer\Annotation as Serializer;

#[Serializer\ExclusionPolicy('none')]
final class TimesheetConfig
{
    /**
     * The time-tracking mode, see also: https://www.kimai.org/documentation/timesheet.html#tracking-modes
     */
    #[Serializer\Expose]
    #[Serializer\Groups(['Default'])]
    #[Serializer\Type(name: 'string')]
    public string $trackingMode = 'default';
    /**
     * Default begin datetime in PHP format
     */
    #[Serializer\Expose]
    #[Serializer\Groups(['Default'])]
    #[Serializer\Type(name: 'string')]
    public string $defaultBeginTime = 'now';
    /**
     * How many running timesheets a user is allowed to have at the same time
     */
    #[Serializer\Expose]
    #[Serializer\Groups(['Default'])]
    #[Serializer\Type(name: 'integer')]
    public int $activeEntriesHardLimit = 1;
    /**
     * Whether entries for future times are allowed
     */
    #[Serializer\Expose]
    #[Serializer\Groups(['Default'])]
    #[Serializer\Type(name: 'boolean')]
    public bool $isAllowFutureTimes = true;
    /**
     * Whether overlapping entries are allowed
     */
    #[Serializer\Expose]
    #[Serializer\Groups(['Default'])]
    #[Serializer\Type(name: 'boolean')]
    public bool $isAllowOverlapping = true;

    public function setTrackingMode(string $trackingMode): void
    {
        $this->trackingMode = $trackingMode;
    }

    public function setDefaultBeginTime(string $defaultBeginTime): void
    {
        $this->defaultBeginTime = $defaultBeginTime;
    }

    public function setActiveEntriesHardLimit(int $activeEntriesHardLimit): void
    {
        $this->activeEntriesHardLimit = $activeEntriesHardLimit;
    }

    public function setIsAllowFutureTimes(bool $isAllowFutureTimes): void
    {
        $this->isAllowFutureTimes = $isAllowFutureTimes;
    }

    public function setIsAllowOverlapping(bool $isAllowOverlapping): void
    {
        $this->isAllowOverlapping = $isAllowOverlapping;
    }
}