Release 2.0.28 (#4172)

See https://github.com/kimai/kimai/pull/4172
This commit is contained in:
Kevin Papst
2023-07-09 15:27:27 +02:00
committed by GitHub
parent 651f812da8
commit 385753fbc3
27 changed files with 182 additions and 53 deletions

View File

@@ -12,12 +12,21 @@ namespace App\Event;
use App\WorkingTime\Model\Year;
use Symfony\Contracts\EventDispatcher\Event;
/**
* Working time for every day of the given year.
* Will be reflected in the working-time summary row.
*/
final class WorkingTimeYearEvent extends Event
{
public function __construct(private Year $year)
public function __construct(private Year $year, private \DateTimeInterface $until)
{
}
public function getUntil(): \DateTimeInterface
{
return $this->until;
}
public function getYear(): Year
{
return $this->year;