SearchParametersStorage
in package
Table of Contents
- $defaults : mixed
- __construct() : mixed
- get() : array<string|int, mixed>
- getForRoomType() : array<string|int, mixed>
- hasStored() : mixed
- save() : mixed
- sanitize() : array<string|int, mixed>
- sanitizeForRoomType() : array<string|int, mixed>
Properties
$defaults
private
mixed
$defaults
= array()
Methods
__construct()
public
__construct() : mixed
Return values
mixed —get()
public
get() : array<string|int, mixed>
Return values
array<string|int, mixed> —Array with keys 'mphb_adults', 'mphb_children', 'mphb_check_in_date', 'mphb_check_out_date' filled stored values or empty strings.
getForRoomType()
public
getForRoomType(RoomType $roomType) : array<string|int, mixed>
Parameters
- $roomType : RoomType
Return values
array<string|int, mixed> —Array with keys 'mphb_adults', 'mphb_children', 'mphb_check_in_date', 'mphb_check_out_date' filled stored values or empty strings.
hasStored()
public
hasStored() : mixed
Return values
mixed —save()
public
save(array<string|int, mixed> $parameters) : mixed
Parameters
- $parameters : array<string|int, mixed>
-
Array with keys 'mphb_adults', 'mphb_children', 'mphb_check_in_date', 'mphb_check_out_date'.
Return values
mixed —sanitize()
private
sanitize(array<string|int, mixed> $parameters) : array<string|int, mixed>
Parameters
- $parameters : array<string|int, mixed>
Return values
array<string|int, mixed> —sanitizeForRoomType()
private
sanitizeForRoomType(array<string|int, mixed> $parameters, RoomType $roomType) : array<string|int, mixed>
Parameters
- $parameters : array<string|int, mixed>
- $roomType : RoomType