PHP Класс Roomify\Bat\Constraint\DateConstraint
An applicable scenario is to allow units to declare (independently of
their actual event state) whether they should be deemed as matching a search
based on the dates of the search. For example, a hotel room can declare that it
should be unavailable if the check-in time is not at least 2 days away from the
today.
Показать файл
Открыть проект
Примеры использования класса
Открытые свойства
Свойство |
Тип |
Описание |
|
$end_date |
|
The constraint end date - if on or after requested end date constraint will apply. |
|
$start_date |
|
The constraint start date - if on or after requested start date constraint will apply. |
|
Открытые методы
Метод |
Описание |
|
__construct ( array $units, null $start_date = NULL, null $end_date = NULL ) |
DateConstraint constructor. |
|
applyConstraint ( Roomify\Bat\Calendar\CalendarResponse &$calendar_response ) |
|
|
toString ( ) : string |
Generates a text describing an availability_constraint. |
|
Описание методов
__construct()
публичный Метод
DateConstraint constructor.
applyConstraint()
публичный Метод
public applyConstraint ( Roomify\Bat\Calendar\CalendarResponse &$calendar_response ) |
$calendar_response |
Roomify\Bat\Calendar\CalendarResponse |
|
toString()
публичный Метод
Generates a text describing an availability_constraint.
Описание свойств
$end_date публичное свойство
The constraint end date - if on or after requested end date constraint will apply.
$start_date публичное свойство
The constraint start date - if on or after requested start date constraint will apply.