PHP Class Roomify\Bat\Constraint\AbstractConstraint

Inheritance: implements Roomify\Bat\Constraint\ConstraintInterface
Show file Open project: roomify/bat

Protected Properties

Property Type Description
$affected_units array
$calendar_response Roomify\Bat\Calendar\CalendarResponse
$end_date DateTime
$start_date DateTime
$units array

Public Methods

Method Description
applyConstraint ( Roomify\Bat\Calendar\CalendarResponse &$calendar_response )
getAffectedUnits ( )
getEndDate ( )
getStartDate ( )
getUnits ( )
setEndDate ( DateTime $end_date )
setStartDate ( DateTime $start_date )

Method Details

applyConstraint() public method

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

getAffectedUnits() public method

public getAffectedUnits ( )

getEndDate() public method

public getEndDate ( )

getStartDate() public method

public getStartDate ( )

getUnits() public method

public getUnits ( )

setEndDate() public method

public setEndDate ( DateTime $end_date )
$end_date DateTime

setStartDate() public method

public setStartDate ( DateTime $start_date )
$start_date DateTime

Property Details

$affected_units protected property

protected array $affected_units
return array

$calendar_response protected property

protected CalendarResponse,Roomify\Bat\Calendar $calendar_response
return Roomify\Bat\Calendar\CalendarResponse

$end_date protected property

protected DateTime $end_date
return DateTime

$start_date protected property

protected DateTime $start_date
return DateTime

$units protected property

protected array $units
return array