Skip to content

Latest commit

 

History

History
54 lines (22 loc) · 1.25 KB

InnoCraft-Experiments-Filters-ScheduledDate.md

File metadata and controls

54 lines (22 loc) · 1.25 KB

InnoCraft\Experiments\Filters\ScheduledDate

Methods

__construct

mixed InnoCraft\Experiments\Filters\ScheduledDate::__construct(string|\DateTimeInterface $now, null|string|\DateTimeInterface $startDate, null|string|\DateTimeInterface $endDate)

ScheduledDate constructor.

When passing a string: Date values separated by slash are assumed to be in American order: m/d/y Date values separated by dash are assumed to be in European order: d-m-y

  • Visibility: public

Arguments

  • $now string|DateTimeInterface
  • $startDate null|string|DateTimeInterface - <p>null if no start date is given and it is valid from any time</p>
  • $endDate null|string|DateTimeInterface - <p>null if no end date is given and it is valid "unlimited"</p>

shouldTrigger

boolean InnoCraft\Experiments\Filters\FilterInterface::shouldTrigger()