DX: Add validation to PickRolingDateType

It is not possible to pick a fixed date when not setting a fixed date
This commit is contained in:
2022-11-07 17:56:30 +01:00
parent c7f740d5d7
commit 4e3c93cdd3
2 changed files with 19 additions and 2 deletions

View File

@@ -84,12 +84,12 @@ class RollingDate
$this->fixedDate = $fixedDate;
}
public function getFixedDate(): DateTimeImmutable
public function getFixedDate(): ?DateTimeImmutable
{
return $this->fixedDate;
}
public function getPivotDate(): ?DateTimeImmutable
public function getPivotDate(): DateTimeImmutable
{
return $this->pivotDate;
}