Pet
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
Array of property to type mappings. Used for (de)serialization
Array of property to format mappings. Used for (de)serialization
Array of nullable properties
Checks if a property is nullable
Checks if a nullable property is set to null.
Array of attributes where the key is the local name, and the value is the original name
Array of attributes to setter functions (for deserialization of responses)
Array of attributes to getter functions (for serialization of requests)
The original name of the model.
Gets allowable values of the enum
Constructor
Show all the invalid properties with reasons.
Validate all the properties in the model return true if all passed
Gets id
Gets category
Gets name
Gets photo_urls
Sets photo_urls
Returns true if offset exists. False otherwise.
Gets offset.
Sets value based on offset.
Unsets offset.
Serializes the object to a value that can be serialized natively by json_encode().
Gets the string presentation of the object
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
at line 121
static array
openAPIFormats()
Array of property to format mappings. Used for (de)serialization
at line 131
static protected array
openAPINullables()
Array of nullable properties
at line 152
static bool
isNullable(string $property)
Checks if a property is nullable
at line 163
bool
isNullableSetToNull(string $property)
Checks if a nullable property is set to null.
at line 217
static array
attributeMap()
Array of attributes where the key is the local name, and the value is the original name
at line 227
static array
setters()
Array of attributes to setter functions (for deserialization of responses)
at line 237
static array
getters()
Array of attributes to getter functions (for serialization of requests)
at line 247
string
getModelName()
The original name of the model.
at line 261
string[]
getStatusAllowableValues()
Gets allowable values of the enum
at line 283
__construct(array $data = null)
Constructor
at line 316
array
listInvalidProperties()
Show all the invalid properties with reasons.
at line 344
bool
valid()
Validate all the properties in the model return true if all passed
at line 355
int|null
getId()
Gets id
at line 367
Pet
setId(int|null $id)
Sets id
at line 384
Category|null
getCategory()
Gets category
at line 413
string
getName()
Gets name
at line 425
Pet
setName(string $name)
Sets name
at line 442
string[]
getPhotoUrls()
Gets photo_urls
at line 454
Pet
setPhotoUrls(string[] $photo_urls)
Sets photo_urls
at line 471
Tag[]|null
getTags()
Gets tags
at line 501
string|null
getStatus()
deprecated
deprecated
Gets status
at line 514
Pet
setStatus(string|null $status)
deprecated
deprecated
Sets status
at line 542
bool
offsetExists(int $offset)
Returns true if offset exists. False otherwise.
at line 554
mixed|null
offsetGet(int $offset)
Gets offset.
at line 568
void
offsetSet(int|null $offset, mixed $value)
Sets value based on offset.
at line 584
void
offsetUnset(int $offset)
Unsets offset.
at line 596
mixed
jsonSerialize()
Serializes the object to a value that can be serialized natively by json_encode().
at line 607
string
__toString()
Gets the string presentation of the object
at line 620
string
toHeaderValue()
Gets a header-safe presentation of the object