Closed boryn closed 3 years ago
IMHO $startDate and $endDate could/should be accepted as well as the instances of DateTimeImmutable.
$startDate
$endDate
DateTimeImmutable
PS. Very easy to implement at dateTimeObject() but was not sure about occursOn() and that's why I have not prepared the PR.
dateTimeObject()
occursOn()
Take a look at the last commit: https://github.com/tplaner/When/commit/84d280a49f6d3acc5515b9b3436f42b5b710a54e
IMHO
$startDate
and$endDate
could/should be accepted as well as the instances ofDateTimeImmutable
.PS. Very easy to implement at
dateTimeObject()
but was not sure aboutoccursOn()
and that's why I have not prepared the PR.