ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
EmployeeTalkPeriod.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\EmployeeTalk\Talk;
22 
23 use ilDatePeriod;
24 use ilDateTime;
25 
26 final class EmployeeTalkPeriod implements ilDatePeriod
27 {
28  private ilDateTime $start;
29  private ilDateTime $end;
30  private bool $fullDay;
31 
38  public function __construct(ilDateTime $start, ilDateTime $end, bool $fullDay)
39  {
40  $this->start = $start;
41  $this->end = $end;
42  $this->fullDay = $fullDay;
43  }
44 
45  public function getStart(): ilDateTime
46  {
47  return $this->start;
48  }
49 
50  public function getEnd(): ilDateTime
51  {
52  return $this->end;
53  }
54 
55  public function isFullday(): bool
56  {
57  return $this->fullDay;
58  }
59 }
__construct(ilDateTime $start, ilDateTime $end, bool $fullDay)
EmployeeTalkPeriod constructor.