From 3e0bd19e9da50286250f9d7a03cedec4ab1aeafd Mon Sep 17 00:00:00 2001 From: Jeppe Krogh Date: Wed, 29 Nov 2023 13:52:50 +0100 Subject: [PATCH] modified models --- src/Model/SprintReport/SprintReportData.php | 8 ++++---- src/Model/SprintReport/SprintReportFormData.php | 2 +- src/Model/SprintReport/SprintReportIssue.php | 2 +- src/Model/SprintReport/SprintReportSprint.php | 4 +--- .../{SprintReportEpic.php => SprintReportTag.php} | 2 +- 5 files changed, 8 insertions(+), 10 deletions(-) rename src/Model/SprintReport/{SprintReportEpic.php => SprintReportTag.php} (97%) diff --git a/src/Model/SprintReport/SprintReportData.php b/src/Model/SprintReport/SprintReportData.php index e7cd0615..9bb28d1d 100644 --- a/src/Model/SprintReport/SprintReportData.php +++ b/src/Model/SprintReport/SprintReportData.php @@ -6,8 +6,8 @@ class SprintReportData { - /** @var ArrayCollection */ - public ArrayCollection $epics; + /** @var ArrayCollection */ + public ArrayCollection $tags; /** @var ArrayCollection */ public ArrayCollection $sprints; /** @var ArrayCollection */ @@ -17,12 +17,12 @@ class SprintReportData public float $remainingHours; public float $projectHours; public string $projectName; - public string $versionName; + public string $milestoneName; public float $originalEstimateSum = 0.0; public function __construct() { - $this->epics = new ArrayCollection(); + $this->tags = new ArrayCollection(); $this->sprints = new ArrayCollection(); $this->issues = new ArrayCollection(); } diff --git a/src/Model/SprintReport/SprintReportFormData.php b/src/Model/SprintReport/SprintReportFormData.php index c44fdcf5..eba735b8 100644 --- a/src/Model/SprintReport/SprintReportFormData.php +++ b/src/Model/SprintReport/SprintReportFormData.php @@ -5,5 +5,5 @@ class SprintReportFormData { public string $projectId; - public string $versionId; + public string $milestoneId; } diff --git a/src/Model/SprintReport/SprintReportIssue.php b/src/Model/SprintReport/SprintReportIssue.php index f160e422..b87b7914 100644 --- a/src/Model/SprintReport/SprintReportIssue.php +++ b/src/Model/SprintReport/SprintReportIssue.php @@ -5,5 +5,5 @@ class SprintReportIssue { public SprintReportSprint $assignedToSprint; - public SprintReportEpic $epic; + public SprintReportTag $tag; } diff --git a/src/Model/SprintReport/SprintReportSprint.php b/src/Model/SprintReport/SprintReportSprint.php index 2b09b5a1..276b40ef 100644 --- a/src/Model/SprintReport/SprintReportSprint.php +++ b/src/Model/SprintReport/SprintReportSprint.php @@ -9,15 +9,13 @@ class SprintReportSprint public SprintStateEnum $state; public ?int $startDateTimestamp; public ?int $endDateTimestamp; - public ?int $completedDateTimestamp; - public function __construct(string $id, string $name, SprintStateEnum $state, ?int $startDateTimestamp, ?int $endDateTimestamp, ?int $completedDateTimestamp) + public function __construct(string $id, string $name, SprintStateEnum $state, ?int $startDateTimestamp, ?int $endDateTimestamp) { $this->id = $id; $this->name = $name; $this->state = $state; $this->startDateTimestamp = $startDateTimestamp; $this->endDateTimestamp = $endDateTimestamp; - $this->completedDateTimestamp = $completedDateTimestamp; } } diff --git a/src/Model/SprintReport/SprintReportEpic.php b/src/Model/SprintReport/SprintReportTag.php similarity index 97% rename from src/Model/SprintReport/SprintReportEpic.php rename to src/Model/SprintReport/SprintReportTag.php index f019fbc4..840c1441 100644 --- a/src/Model/SprintReport/SprintReportEpic.php +++ b/src/Model/SprintReport/SprintReportTag.php @@ -4,7 +4,7 @@ use Doctrine\Common\Collections\ArrayCollection; -class SprintReportEpic +class SprintReportTag { public readonly string $id; public readonly string $name;