Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand the openinghour checker API #8

Open
veloxy opened this issue Oct 20, 2016 · 1 comment
Open

Expand the openinghour checker API #8

veloxy opened this issue Oct 20, 2016 · 1 comment
Labels

Comments

@veloxy
Copy link
Owner

veloxy commented Oct 20, 2016

Expand the checker API with some more useful checks such as:

  • Getting the next opening hour/date base on given DateTime or now. eg getEarliestOpening(\DateTime $dateTime) : \DateTime
  • Getting opening hours for certain date period (taking overrides into account). eg getOpeningHoursForPeriod(\DateTime $from, \DateTime $until) : array. Not sure of the format here yet.
  • Check if open within given TimePeriod, eg: isOpenBetweenHours(\DateTime $date, TimePeriod $timePeriod) : bool
  • ...
@veloxy veloxy added the feature label Oct 20, 2016
@veloxy veloxy added this to the First public release milestone Oct 20, 2016
@veloxy veloxy removed this from the First public release milestone Nov 2, 2016
@veloxy
Copy link
Owner Author

veloxy commented Nov 2, 2016

Removing this from first release due to lack of time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant