PHP Class Roomify\Bat\Constraint\MinMaxDaysConstraint

Inheritance: extends Roomify\Bat\Constraint\Constraint
Afficher le fichier Open project: roomify/bat Class Usage Examples

Protected Properties

Свойство Type Description
$checkin_day integer
$max_days integer
$min_days integer

Méthodes publiques

Méthode Description
__construct ( $units, $min_days, $max_days, $start_date = NULL, $end_date = NULL, $checkin_day = NULL )
applyConstraint ( Roomify\Bat\Calendar\CalendarResponse &$calendar_response )
getCheckinDay ( ) : integer
getMaxDays ( ) : integer
getMinDays ( ) : integer
setCheckinDay ( $checkin_day )
setMaxDays ( $max_days )
setMinDays ( $min_days )
toString ( ) : string Generates a text describing an availability_constraint.

Private Methods

Méthode Description
getWeekDay ( $day ) : string

Method Details

__construct() public méthode

public __construct ( $units, $min_days, $max_days, $start_date = NULL, $end_date = NULL, $checkin_day = NULL )
$min_days
$max_days
$start_date
$end_date
$checkin_day

applyConstraint() public méthode

public applyConstraint ( Roomify\Bat\Calendar\CalendarResponse &$calendar_response )
$calendar_response Roomify\Bat\Calendar\CalendarResponse

getCheckinDay() public méthode

public getCheckinDay ( ) : integer
Résultat integer

getMaxDays() public méthode

public getMaxDays ( ) : integer
Résultat integer

getMinDays() public méthode

public getMinDays ( ) : integer
Résultat integer

setCheckinDay() public méthode

public setCheckinDay ( $checkin_day )
$checkin_day

setMaxDays() public méthode

public setMaxDays ( $max_days )
$max_days

setMinDays() public méthode

public setMinDays ( $min_days )
$min_days

toString() public méthode

Generates a text describing an availability_constraint.
public toString ( ) : string
Résultat string The formatted message.

Property Details

$checkin_day protected_oe property

protected int $checkin_day
Résultat integer

$max_days protected_oe property

protected int $max_days
Résultat integer

$min_days protected_oe property

protected int $min_days
Résultat integer