51 lines
1.6 KiB
PHP
51 lines
1.6 KiB
PHP
|
<?php declare(strict_types=1);
|
||
|
|
||
|
namespace Nischcodes\Shiftcalc\App\Model;
|
||
|
|
||
|
/**
|
||
|
* Date
|
||
|
*
|
||
|
* date model for this application
|
||
|
*
|
||
|
* PHP version 8.4 or higher
|
||
|
*
|
||
|
* LICENSE: GPL-3
|
||
|
*
|
||
|
* @package ShiftCalc
|
||
|
* @author nisch.codes <nischcodes@noreply.projects.nisch.codes>
|
||
|
* @copyright 2021 nisch.codes
|
||
|
* @license https://projects.nisch.codes/nischcodes/shiftcalc/src/branch/main/LICENSE GPL-3
|
||
|
* @version 1.0.0
|
||
|
* @link https://projects.nisch.codes/nischcodes/shiftcalc
|
||
|
*/
|
||
|
|
||
|
use Nischcodes\Shiftcalc\MVC\BaseModel;
|
||
|
|
||
|
class WorkingHoursEntryModel extends BaseModel {
|
||
|
|
||
|
public function __construct(
|
||
|
protected string $date,
|
||
|
protected string $start,
|
||
|
protected string $end,
|
||
|
protected string $type,
|
||
|
protected string $info,
|
||
|
protected float $start_decimal,
|
||
|
protected float $end_decimal,
|
||
|
protected float $worktime_decimal,
|
||
|
protected float $break_decimal,
|
||
|
protected float $worktime_total_decimal
|
||
|
){
|
||
|
parent::__construct();
|
||
|
}
|
||
|
|
||
|
// implement the load function
|
||
|
public static function load() {
|
||
|
static::$repository = [
|
||
|
new self('2025-01-01','','','Holiday', 'First Example Holiday', 0, 0, 0, 0, 0),
|
||
|
new self('2025-05-03','','','Holiday', 'Second Example Holiday', 0, 0, 0, 0, 0),
|
||
|
new self('2025-01-02','','','Vacation', '', 0, 0, 0, 0, 8.00),
|
||
|
new self('2025-07-01','08:41','17:48','Office', '', 8.68, 17.8, 9.12, 0.75, 7.72),
|
||
|
new self('2025-07-15','08:23','16:36','Homeoffice', '', 8.38, 16.6, 8.22, 0.5, 0)
|
||
|
];
|
||
|
}
|
||
|
}
|