* added fix to work around bc break in new phpword version * fix phpoffice deprecations * mark unused option as deprecated * support for DateTimeInterface and DateTimeImmutable where possible * use TRUSTED_PROXIES setting - fixes #4533 * re-enable Kimai test in docker test build script (#4541) * bump dependencies
42 lines
914 B
PHP
42 lines
914 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Kimai time-tracking app.
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace App\Event;
|
|
|
|
use App\Entity\Project;
|
|
use App\Model\ProjectStatistic;
|
|
|
|
final class ProjectStatisticEvent extends AbstractProjectEvent
|
|
{
|
|
public function __construct(
|
|
Project $project,
|
|
private readonly ProjectStatistic $statistic,
|
|
private readonly ?\DateTimeInterface $begin = null,
|
|
private readonly ?\DateTimeInterface $end = null
|
|
)
|
|
{
|
|
parent::__construct($project);
|
|
}
|
|
|
|
public function getStatistic(): ProjectStatistic
|
|
{
|
|
return $this->statistic;
|
|
}
|
|
|
|
public function getBegin(): ?\DateTimeInterface
|
|
{
|
|
return $this->begin;
|
|
}
|
|
|
|
public function getEnd(): ?\DateTimeInterface
|
|
{
|
|
return $this->end;
|
|
}
|
|
}
|