class Order implements ModelInterface, ArrayAccess, JsonSerializable

Order Class Doc Comment

Constants

DISCRIMINATOR

STATUS_PLACED

STATUS_APPROVED

STATUS_DELIVERED

Properties

static protected string $openAPIModelName

The original name of the model.

static protected string[] $openAPITypes

Array of property to type mappings. Used for (de)serialization

static protected string[] $openAPIFormats

Array of property to format mappings. Used for (de)serialization

static protected bool[] $openAPINullables

Array of nullable properties. Used for (de)serialization

protected bool[] $openAPINullablesSetToNull

If a nullable field gets set to null, insert it here

static protected string[] $attributeMap

Array of attributes where the key is the local name, and the value is the original name

static protected string[] $setters

Array of attributes to setter functions (for deserialization of responses)

static protected string[] $getters

Array of attributes to getter functions (for serialization of requests)

protected array $container

Associative array for storing property values

Methods

static array
openAPITypes()

Array of property to type mappings. Used for (de)serialization

static array
openAPIFormats()

Array of property to format mappings. Used for (de)serialization

static array
openAPINullables()

Array of nullable properties

static bool
isNullable(string $property)

Checks if a property is nullable

bool
isNullableSetToNull(string $property)

Checks if a nullable property is set to null.

static array
attributeMap()

Array of attributes where the key is the local name, and the value is the original name

static array
setters()

Array of attributes to setter functions (for deserialization of responses)

static array
getters()

Array of attributes to getter functions (for serialization of requests)

string
getModelName()

The original name of the model.

string[]
getStatusAllowableValues()

Gets allowable values of the enum

__construct(array $data = null)

Constructor

array
listInvalidProperties()

Show all the invalid properties with reasons.

bool
valid()

Validate all the properties in the model return true if all passed

int|null
getId()

Gets id

setId(int|null $id)

Sets id

int|null
getPetId()

Gets pet_id

setPetId(int|null $pet_id)

Sets pet_id

int|null
getQuantity()

Gets quantity

setQuantity(int|null $quantity)

Sets quantity

DateTime|null
getShipDate()

Gets ship_date

setShipDate(DateTime|null $ship_date)

Sets ship_date

string|null
getStatus()

Gets status

setStatus(string|null $status)

Sets status

bool|null
getComplete()

Gets complete

setComplete(bool|null $complete)

Sets complete

bool
offsetExists(int $offset)

Returns true if offset exists. False otherwise.

mixed|null
offsetGet(int $offset)

Gets offset.

void
offsetSet(int|null $offset, mixed $value)

Sets value based on offset.

void
offsetUnset(int $offset)

Unsets offset.

mixed
jsonSerialize()

Serializes the object to a value that can be serialized natively by json_encode().

string
__toString()

Gets the string presentation of the object

string
toHeaderValue()

Gets a header-safe presentation of the object

Details

at line 111
static array openAPITypes()

Array of property to type mappings. Used for (de)serialization

Return Value

array

at line 121
static array openAPIFormats()

Array of property to format mappings. Used for (de)serialization

Return Value

array

at line 131
static protected array openAPINullables()

Array of nullable properties

Return Value

array

at line 152
static bool isNullable(string $property)

Checks if a property is nullable

Parameters

string $property

Return Value

bool

at line 163
bool isNullableSetToNull(string $property)

Checks if a nullable property is set to null.

Parameters

string $property

Return Value

bool

at line 217
static array attributeMap()

Array of attributes where the key is the local name, and the value is the original name

Return Value

array

at line 227
static array setters()

Array of attributes to setter functions (for deserialization of responses)

Return Value

array

at line 237
static array getters()

Array of attributes to getter functions (for serialization of requests)

Return Value

array

at line 247
string getModelName()

The original name of the model.

Return Value

string

at line 261
string[] getStatusAllowableValues()

Gets allowable values of the enum

Return Value

string[]

at line 283
__construct(array $data = null)

Constructor

Parameters

array $data

Associated array of property values initializing the model

at line 316
array listInvalidProperties()

Show all the invalid properties with reasons.

Return Value

array

at line 338
bool valid()

Validate all the properties in the model return true if all passed

Return Value

bool

at line 349
int|null getId()

Gets id

Return Value

int|null

at line 361
Order setId(int|null $id)

Sets id

Parameters

int|null $id id

Return Value

Order

at line 378
int|null getPetId()

Gets pet_id

Return Value

int|null

at line 390
Order setPetId(int|null $pet_id)

Sets pet_id

Parameters

int|null $pet_id pet_id

Return Value

Order

at line 407
int|null getQuantity()

Gets quantity

Return Value

int|null

at line 419
Order setQuantity(int|null $quantity)

Sets quantity

Parameters

int|null $quantity quantity

Return Value

Order

at line 436
DateTime|null getShipDate()

Gets ship_date

Return Value

DateTime|null

at line 448
Order setShipDate(DateTime|null $ship_date)

Sets ship_date

Parameters

DateTime|null $ship_date ship_date

Return Value

Order

at line 465
string|null getStatus()

Gets status

Return Value

string|null

at line 477
Order setStatus(string|null $status)

Sets status

Parameters

string|null $status

Order Status

Return Value

Order

at line 504
bool|null getComplete()

Gets complete

Return Value

bool|null

at line 516
Order setComplete(bool|null $complete)

Sets complete

Parameters

bool|null $complete complete

Return Value

Order

at line 534
bool offsetExists(int $offset)

Returns true if offset exists. False otherwise.

Parameters

int $offset Offset

Return Value

bool

at line 546
mixed|null offsetGet(int $offset)

Gets offset.

Parameters

int $offset Offset

Return Value

mixed|null

at line 560
void offsetSet(int|null $offset, mixed $value)

Sets value based on offset.

Parameters

int|null $offset Offset
mixed $value

Value to be set

Return Value

void

at line 576
void offsetUnset(int $offset)

Unsets offset.

Parameters

int $offset Offset

Return Value

void

at line 588
mixed jsonSerialize()

Serializes the object to a value that can be serialized natively by json_encode().

Return Value

mixed

Returns data which can be serialized by json_encode(), which is a value of any type other than a resource.

at line 599
string __toString()

Gets the string presentation of the object

Return Value

string

at line 612
string toHeaderValue()

Gets a header-safe presentation of the object

Return Value

string