ReserveCondition
Reservation condition in the sale.
This class is similar to enum
with constants, so you don't need to create instances for it.
Table of Contents
Constants
- ON_ALLOW_DELIVERY = 'D'
- ON_CREATE = 'O'
- ON_FULL_PAY = 'P'
- ON_PAY = 'R'
- ON_SHIP = 'S'
Methods
- getAvailableValues() : array<string|int, mixed>
- Available values of reserve condition.
- isValid() : bool
- Validating value of reserve condition.
- validate() : void
- Validating value of reserve condition.
Constants
ON_ALLOW_DELIVERY
public
mixed
ON_ALLOW_DELIVERY
= 'D'
ON_CREATE
public
mixed
ON_CREATE
= 'O'
ON_FULL_PAY
public
mixed
ON_FULL_PAY
= 'P'
ON_PAY
public
mixed
ON_PAY
= 'R'
ON_SHIP
public
mixed
ON_SHIP
= 'S'
Methods
getAvailableValues()
Available values of reserve condition.
public
static getAvailableValues() : array<string|int, mixed>
Return values
array<string|int, mixed>isValid()
Validating value of reserve condition.
public
static isValid(string $value) : bool
Parameters
- $value : string
Return values
boolvalidate()
Validating value of reserve condition.
public
static validate(string $value) : void
Parameters
- $value : string