class Pet implements ModelInterface, ArrayAccess, JsonSerializable

Pet Class Doc Comment

Constants

DISCRIMINATOR

STATUS_AVAILABLE

STATUS_PENDING

STATUS_SOLD

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

Pet
setId(int|null $id)

Sets id

Category|null
getCategory()

Gets category

Pet
setCategory(Category|null $category)

Sets category

string
getName()

Gets name

Pet
setName(string $name)

Sets name

string[]
getPhotoUrls()

Gets photo_urls

Pet
setPhotoUrls(string[] $photo_urls)

Sets photo_urls

Tag[]|null
getTags()

Gets tags

Pet
setTags(Tag[]|null $tags)

Sets tags

string|null
getStatus() deprecated

Gets status

Pet
setStatus(string|null $status) deprecated

Sets status

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 344
bool valid()

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

Return Value

bool

at line 355
int|null getId()

Gets id

Return Value

int|null

at line 367
Pet setId(int|null $id)

Sets id

Parameters

int|null $id id

Return Value

Pet

at line 384
Category|null getCategory()

Gets category

Return Value

Category|null

at line 396
Pet setCategory(Category|null $category)

Sets category

Parameters

Category|null $category category

Return Value

Pet

at line 413
string getName()

Gets name

Return Value

string

at line 425
Pet setName(string $name)

Sets name

Parameters

string $name name

Return Value

Pet

at line 442
string[] getPhotoUrls()

Gets photo_urls

Return Value

string[]

at line 454
Pet setPhotoUrls(string[] $photo_urls)

Sets photo_urls

Parameters

string[] $photo_urls photo_urls

Return Value

Pet

at line 471
Tag[]|null getTags()

Gets tags

Return Value

Tag[]|null

at line 483
Pet setTags(Tag[]|null $tags)

Sets tags

Parameters

Tag[]|null $tags tags

Return Value

Pet

at line 501
string|null getStatus() deprecated

deprecated

Gets status

Return Value

string|null

at line 514
Pet setStatus(string|null $status) deprecated

deprecated

Sets status

Parameters

string|null $status

pet status in the store

Return Value

Pet

at line 542
bool offsetExists(int $offset)

Returns true if offset exists. False otherwise.

Parameters

int $offset Offset

Return Value

bool

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

Gets offset.

Parameters

int $offset Offset

Return Value

mixed|null

at line 568
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 584
void offsetUnset(int $offset)

Unsets offset.

Parameters

int $offset Offset

Return Value

void

at line 596
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 607
string __toString()

Gets the string presentation of the object

Return Value

string

at line 620
string toHeaderValue()

Gets a header-safe presentation of the object

Return Value

string