@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user