PHP 클래스 Yasumi\Filters\BetweenFilter
Filters all holidays between the given start and end date. An additional parameter can be used to identify if the
start and end date need to be included in the comparison.
Note: this class can be used separately, however is implemented by the AbstractProvider::between method.
파일 보기
프로젝트 열기: azuyalabs/yasumi
공개 메소드들
메소드 상세
Construct the Between FilterIterator Object
public __construct ( Iterator $iterator, DateTime $start_date, DateTime $end_date, boolean $equal = true ) |
$iterator |
Iterator |
Iterator object of the Holidays Provider |
$start_date |
DateTime |
Start date of the time frame to check against |
$end_date |
DateTime |
End date of the time frame to check against |
$equal |
boolean |
Indicate whether the start and end dates should be included in the comparison |
public accept ( ) : boolean |
리턴 |
boolean |
Check whether the current element of the iterator is acceptable |