Skip to content

Commit

Permalink
modified models
Browse files Browse the repository at this point in the history
  • Loading branch information
jeppekroghitk committed Nov 29, 2023
1 parent fdc7dc4 commit 3e0bd19
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/Model/SprintReport/SprintReportData.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

class SprintReportData
{
/** @var ArrayCollection<string, SprintReportEpic> */
public ArrayCollection $epics;
/** @var ArrayCollection<string, SprintReportTag> */
public ArrayCollection $tags;
/** @var ArrayCollection<string, SprintReportSprint> */
public ArrayCollection $sprints;
/** @var ArrayCollection<string, SprintReportIssue> */
Expand All @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Model/SprintReport/SprintReportFormData.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
class SprintReportFormData
{
public string $projectId;
public string $versionId;
public string $milestoneId;
}
2 changes: 1 addition & 1 deletion src/Model/SprintReport/SprintReportIssue.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
class SprintReportIssue
{
public SprintReportSprint $assignedToSprint;
public SprintReportEpic $epic;
public SprintReportTag $tag;
}
4 changes: 1 addition & 3 deletions src/Model/SprintReport/SprintReportSprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Doctrine\Common\Collections\ArrayCollection;

class SprintReportEpic
class SprintReportTag
{
public readonly string $id;
public readonly string $name;
Expand Down

0 comments on commit 3e0bd19

Please sign in to comment.