CouponData extends AbstractPostData
in package

Table of Contents

COUPON_TYPE_DEFAULT  = 'percentage'
$entity  : AbstractCoupon
$_entity_init_state  : mixed
__construct()  : mixed
__get()  : mixed
__set()  : mixed
findById()  : static|null
getData()  : array<string|int, mixed>
getFields()  : array<string|int, mixed>
getProperties()  : mixed
getRepository()  : AbstractPostRepository
getRequiredFieldKeys()  : array<string|int, mixed>
getRequiredFields()  : array<string|int, mixed>
getSchema()  : mixed
getWritableFieldKeys()  : array<string|int, mixed>
getWritableFields()  : array<string|int, mixed>
save()  : bool
getAccommodationTypes()  : mixed
getCheckInDateAfter()  : string
getCheckOutDateBefore()  : string
getDateCreated()  : mixed
getDateCreatedUtc()  : mixed
getDateModified()  : mixed
getDateModifiedUtc()  : mixed
getExpirationDate()  : mixed
getMaxDays()  : int
getMaxDaysBeforeCheckIn()  : int
getMinDays()  : int
getMinDaysBeforeCheckIn()  : int
getType()  : mixed
isDataChanged()  : bool
setAccommodationTypes()  : mixed
initTypedCoupon()  : AbstractCoupon
setDataToEntity()  : mixed

Constants

COUPON_TYPE_DEFAULT

public mixed COUPON_TYPE_DEFAULT = 'percentage'

Properties

$entity

public AbstractCoupon $entity

$_entity_init_state

protected mixed $_entity_init_state

Methods

__construct()

public __construct(mixed $entity) : mixed
Parameters
$entity : mixed
Return values
mixed

__get()

public __get( $property) : mixed
Parameters
$property :
Tags
throws
Exception
Return values
mixed

__set()

public __set( $property,  $value) : mixed
Parameters
$property :
$value :
Tags
throws
Exception
Return values
mixed

findById()

public static findById(int $id) : static|null
Parameters
$id : int
Return values
static|null

getData()

public getData() : array<string|int, mixed>
Tags
throws
Exception
Return values
array<string|int, mixed>

getFields()

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

getProperties()

public static getProperties() : mixed
Return values
mixed

getRequiredFieldKeys()

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

getRequiredFields()

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

getSchema()

public static getSchema(mixed $title) : mixed
Parameters
$title : mixed
Return values
mixed

getWritableFieldKeys()

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

getWritableFields()

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

save()

public save() : bool
Return values
bool

getAccommodationTypes()

protected getAccommodationTypes() : mixed
Return values
mixed

getCheckInDateAfter()

protected getCheckInDateAfter() : string
Return values
string

Date Y-m-d or empty string

getCheckOutDateBefore()

protected getCheckOutDateBefore() : string
Return values
string

Date Y-m-d or empty string

getDateCreated()

protected getDateCreated() : mixed
Return values
mixed

getDateCreatedUtc()

protected getDateCreatedUtc() : mixed
Return values
mixed

getDateModified()

protected getDateModified() : mixed
Return values
mixed

getDateModifiedUtc()

protected getDateModifiedUtc() : mixed
Return values
mixed

getExpirationDate()

protected getExpirationDate() : mixed
Return values
mixed

getMaxDays()

protected getMaxDays() : int
Return values
int

getMaxDaysBeforeCheckIn()

protected getMaxDaysBeforeCheckIn() : int
Return values
int

getMinDays()

protected getMinDays() : int
Return values
int

getMinDaysBeforeCheckIn()

protected getMinDaysBeforeCheckIn() : int
Return values
int

getType()

protected getType() : mixed
Return values
mixed

isDataChanged()

protected isDataChanged() : bool
Return values
bool

setAccommodationTypes()

protected setAccommodationTypes(mixed $accommodationTypes) : mixed
Parameters
$accommodationTypes : mixed
Return values
mixed

initTypedCoupon()

private initTypedCoupon(array<string|int, mixed> $atts, string $type) : AbstractCoupon
Parameters
$atts : array<string|int, mixed>
$type : string
Return values
AbstractCoupon

setDataToEntity()

private setDataToEntity() : mixed
Return values
mixed

Search results