mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-10 09:13:11 +08:00
Improved DateRange to check if both wrapped dates are empty
This commit is contained in:
@@ -33,4 +33,12 @@ class DateRange
|
||||
{
|
||||
return $this->endDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmpty()
|
||||
{
|
||||
return is_null($this->startDate) && is_null($this->endDate);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user