monthly budget, monthly report, unified report calculation (#2684)

This commit is contained in:
Kevin Papst
2021-08-06 18:38:41 +02:00
committed by GitHub
parent 21f785638c
commit cefd747e91
196 changed files with 5031 additions and 2167 deletions

View File

@@ -12,6 +12,7 @@ namespace App\Reporting\ProjectDetails;
use App\Entity\Project;
use App\Entity\User;
use App\Model\ActivityStatistic;
use App\Model\BudgetStatisticModel;
use App\Model\Statistic\UserYear;
use App\Model\Statistic\Year;
use App\Model\UserStatistic;
@@ -38,6 +39,10 @@ final class ProjectDetailsModel
* @var ActivityStatistic[]
*/
private $activities = [];
/**
* @var BudgetStatisticModel
*/
private $budgetStatisticModel;
public function __construct(Project $project)
{
@@ -155,4 +160,14 @@ final class ProjectDetailsModel
{
$this->years = $years;
}
public function getBudgetStatisticModel(): ?BudgetStatisticModel
{
return $this->budgetStatisticModel;
}
public function setBudgetStatisticModel(BudgetStatisticModel $budgetStatisticModel): void
{
$this->budgetStatisticModel = $budgetStatisticModel;
}
}