mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user