Method | Description | |
---|---|---|
__construct ( array $holidays = [] ) | Creates a new holiday collection. | |
addHoliday ( DateTime $holiday ) | Adds a day. | |
addHolidays ( DateTime[] | |
Adds a set of days. | |
isHoliday ( DateTime $date ) : boolean | Checks if a given date is holiday. | |
jsonSerialize ( ) | ||
serialize ( ) | ||
unserialize ( $serialized ) |
public __construct ( array $holidays = [] ) | ||
$holidays | array |
public addHolidays ( DateTime[] | |
||
$holidays | DateTime[] | |