This repository has been archived on 2023-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
web/app/lib/App/Timetable/Time.php

27 lines
414 B
PHP
Raw Permalink Normal View History

2022-03-13 19:54:34 +00:00
<?php
namespace App\Timetable;
use \DateTime;
/**
* Represents a record in timetable
*/
class Time
{
public int $id;
2022-04-14 20:59:42 +00:00
public int $team_id;
2022-03-13 19:54:34 +00:00
public DateTime $date;
2022-03-14 10:36:45 +00:00
2022-04-14 20:59:42 +00:00
public function setTeamId(int $team_id): Self
2022-03-14 10:36:45 +00:00
{
2022-04-14 20:59:42 +00:00
$this->team_id = $team_id;
2022-03-14 10:36:45 +00:00
return $this;
}
public function setDate(DateTime $date): Self
{
$this->date = $date;
return $this;
}
2022-03-13 19:54:34 +00:00
}