Release 2.27 (#5212)
This commit is contained in:
@@ -14,7 +14,7 @@ use App\Model\CustomerStatistic;
|
||||
|
||||
final class CustomerStatisticEvent extends AbstractCustomerEvent
|
||||
{
|
||||
public function __construct(Customer $customer, private CustomerStatistic $statistic, private ?\DateTime $begin = null, private ?\DateTime $end = null)
|
||||
public function __construct(Customer $customer, private readonly CustomerStatistic $statistic, private readonly ?\DateTimeInterface $begin = null, private readonly ?\DateTimeInterface $end = null)
|
||||
{
|
||||
parent::__construct($customer);
|
||||
}
|
||||
@@ -24,12 +24,12 @@ final class CustomerStatisticEvent extends AbstractCustomerEvent
|
||||
return $this->statistic;
|
||||
}
|
||||
|
||||
public function getBegin(): ?\DateTime
|
||||
public function getBegin(): ?\DateTimeInterface
|
||||
{
|
||||
return $this->begin;
|
||||
}
|
||||
|
||||
public function getEnd(): ?\DateTime
|
||||
public function getEnd(): ?\DateTimeInterface
|
||||
{
|
||||
return $this->end;
|
||||
}
|
||||
|
||||
@@ -15,10 +15,14 @@ use Symfony\Contracts\EventDispatcher\Event;
|
||||
/**
|
||||
* Working time for every day of the given year.
|
||||
* Will be reflected in the working-time summary row.
|
||||
*
|
||||
* Only to be used with already approved entries.
|
||||
*
|
||||
* Can be locked before, but also can be locked by the system.
|
||||
*/
|
||||
final class WorkingTimeYearEvent extends Event
|
||||
{
|
||||
public function __construct(private Year $year, private \DateTimeInterface $until)
|
||||
public function __construct(private readonly Year $year, private readonly \DateTimeInterface $until)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user