Release 2.0.26 (#4087)
- setting "rounding days" not required - developer: added user pref for public holiday group (to be used by plugins) - developer: added WorkingTimeYearEvent (to be used by plugins) - user pref: cleanup work contract form and support more fields (to be used by plugins) - code cleanup - bump theme and composer packages
This commit is contained in:
@@ -44,6 +44,11 @@ class Month
|
||||
$this->days['_' . $day->getDay()->format('d')] = $day;
|
||||
}
|
||||
|
||||
public function getDay(DateTimeInterface $date): Day
|
||||
{
|
||||
return $this->days['_' . $date->format('d')];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Day[]
|
||||
*/
|
||||
|
||||
@@ -50,6 +50,11 @@ class Year
|
||||
return $this->months['_' . $month->format('m')];
|
||||
}
|
||||
|
||||
public function getDay(\DateTimeInterface $date): Day
|
||||
{
|
||||
return $this->getMonth($date)->getDay($date);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Month[]
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user