SeasonPrice
in package

Table of Contents

$basePrice  : float
$basePrices  : array<string|int, mixed>
$enableVariations  : bool
$id  : int
$seasonId  : int
$stockPrices  : array<string|int, mixed>
$variations  : array<string|int, mixed>
create()  : SeasonPrice|null
getDatePrices()  : array<string|int, mixed>
getId()  : int
getPrice()  : float
getPricesAndVariations()  : array<string|int, mixed>
getSeason()  : Season|null
getSeasonId()  : int
__construct()  : mixed
getPriceForPeriod()  : float
getVariation()  : mixed

Properties

$basePrice

private float $basePrice

$basePrices

private array<string|int, mixed> $basePrices

$enableVariations

private bool $enableVariations

$id

private int $id

$seasonId

private int $seasonId

$stockPrices

private array<string|int, mixed> $stockPrices

$variations

private array<string|int, mixed> $variations

Methods

create()

public static create(array<string|int, mixed> $atts) : SeasonPrice|null
Parameters
$atts : array<string|int, mixed>
Return values
SeasonPrice|null

getDatePrices()

public getDatePrices() : array<string|int, mixed>
Tags
since
3.5.0

removed optional parameter $occupancyParams.

Return values
array<string|int, mixed>

getId()

public getId() : int
Return values
int

getPrice()

public getPrice() : float
Tags
since
3.5.0

removed optional parameter $occupancyParams.

Return values
float

Base or variation price.

getPricesAndVariations()

public getPricesAndVariations() : array<string|int, mixed>
Return values
array<string|int, mixed>

getSeason()

public getSeason() : Season|null
Return values
Season|null

getSeasonId()

public getSeasonId() : int
Return values
int

__construct()

protected __construct([array<string|int, mixed> $atts = array() ]) : mixed
Parameters
$atts : array<string|int, mixed> = array()
Return values
mixed

getPriceForPeriod()

protected getPriceForPeriod(array<string|int, mixed> $prices, int $nightsCount) : float
Parameters
$prices : array<string|int, mixed>

[1 => 20, 5 => 15, 14 => 10]

$nightsCount : int

[-1; oo).

Tags
since
3.5.0
Return values
float

getVariation()

protected getVariation(mixed $adults, mixed $children) : mixed
Parameters
$adults : mixed
$children : mixed
Tags
since
3.5.0
Return values
mixed

Search results