PHP Class Roomify\Bat\Constraint\CheckInDayConstraint

Inheritance: extends Roomify\Bat\Constraint\Constraint
Show file Open project: roomify/bat Class Usage Examples

Protected Properties

Property Type Description
$checkin_day

Public Methods

Method Description
__construct ( $units, $checkin_day, $start_date = NULL, $end_date = NULL )
applyConstraint ( Roomify\Bat\Calendar\CalendarResponse &$calendar_response )
getCheckinDay ( ) : integer
setCheckinDay ( $checkin_day )
toString ( ) : string Generates a text describing an availability_constraint.

Private Methods

Method Description
getWeekDay ( $day ) : string

Method Details

__construct() public method

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

applyConstraint() public method

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

getCheckinDay() public method

public getCheckinDay ( ) : integer
return integer

setCheckinDay() public method

public setCheckinDay ( $checkin_day )
$checkin_day

toString() public method

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

Property Details

$checkin_day protected property

protected $checkin_day