Methods |
public
static
|
openAPITypes(): array
Array of property to type mappings. Used for (de)serialization
Array of property to type mappings. Used for (de)serialization
Implements
|
#
|
public
static
|
openAPIFormats(): array
Array of property to format mappings. Used for (de)serialization
Array of property to format mappings. Used for (de)serialization
Implements
|
#
|
protected
static
|
openAPINullables(): array
Array of nullable properties
Array of nullable properties
|
#
|
public
static
|
isNullable(string $property): bool
Checks if a property is nullable
Checks if a property is nullable
Implements
|
#
|
public
|
isNullableSetToNull(string $property): bool
Checks if a nullable property is set to null.
Checks if a nullable property is set to null.
Implements
|
#
|
public
static
|
attributeMap(): array
Array of attributes where the key is the local name,
and the value is the original name
Array of attributes where the key is the local name,
and the value is the original name
Implements
|
#
|
public
static
|
setters(): array
Array of attributes to setter functions (for deserialization of responses)
Array of attributes to setter functions (for deserialization of responses)
Implements
|
#
|
public
static
|
getters(): array
Array of attributes to getter functions (for serialization of requests)
Array of attributes to getter functions (for serialization of requests)
Implements
|
#
|
public
|
getModelName(): string
The original name of the model.
The original name of the model.
Implements
|
#
|
public
|
__construct(mixed[] $data = null)
Constructor
Parameters
$data |
Associated array of property values
initializing the model
|
|
#
|
public
|
listInvalidProperties(): array
Show all the invalid properties with reasons.
Show all the invalid properties with reasons.
Returns
invalid properties with reasons
Implements
|
#
|
public
|
valid(): bool
Validate all the properties in the model
return true if all passed
Validate all the properties in the model
return true if all passed
Returns
True if all properties are valid
Implements
|
#
|
public
|
getId(): int|null
Gets id
|
#
|
public
|
setId(int|null $id): self
Sets id
|
#
|
public
|
getUsername(): string|null
Gets username
|
#
|
public
|
setUsername(string|null $username): self
Sets username
|
#
|
public
|
getFirstName(): string|null
Gets first_name
|
#
|
public
|
setFirstName(string|null $first_name): self
Sets first_name
|
#
|
public
|
getLastName(): string|null
Gets last_name
|
#
|
public
|
setLastName(string|null $last_name): self
Sets last_name
|
#
|
public
|
getEmail(): string|null
Gets email
|
#
|
public
|
setEmail(string|null $email): self
Sets email
|
#
|
public
|
getPassword(): string|null
Gets password
|
#
|
public
|
setPassword(string|null $password): self
Sets password
|
#
|
public
|
getPhone(): string|null
Gets phone
|
#
|
public
|
setPhone(string|null $phone): self
Sets phone
|
#
|
public
|
getUserStatus(): int|null
Gets user_status
|
#
|
public
|
setUserStatus(int|null $user_status): self
Sets user_status
|
#
|
public
|
offsetExists(integer $offset): boolean
Returns true if offset exists. False otherwise.
Returns true if offset exists. False otherwise.
Parameters
Implements
|
#
|
public
|
offsetGet(integer $offset): mixed|null
Gets offset.
|
#
|
public
|
offsetSet(int|null $offset, mixed $value): void
Sets value based on offset.
Sets value based on offset.
Parameters
$offset |
Offset
|
$value |
Value to be set
|
Implements
|
#
|
public
|
offsetUnset(integer $offset): void
Unsets offset.
|
#
|
public
|
jsonSerialize(): mixed
Serializes the object to a value that can be serialized natively by json_encode().
Serializes the object to a value that can be serialized natively by json_encode().
Returns
Returns data which can be serialized by json_encode(), which is a value
of any type other than a resource.
Implements
|
#
|
public
|
__toString(): string
Gets the string presentation of the object
Gets the string presentation of the object
|
#
|
public
|
toHeaderValue(): string
Gets a header-safe presentation of the object
Gets a header-safe presentation of the object
|
#
|
Properties |
protected
static
|
string
|
$openAPIModelName = 'User'
|
#
|
protected
static
|
string[]
|
$openAPITypes = [
'id' => 'int',
'username' => 'string',
'first_name' => 'string',
'last_name' => 'string',
'email' => 'string',
'password' => 'string',
'phone' => 'string',
'user_status' => 'int',
]
|
#
|
protected
static
|
string[]
|
$openAPIFormats = [
'id' => 'int64',
'username' => null,
'first_name' => null,
'last_name' => null,
'email' => null,
'password' => null,
'phone' => null,
'user_status' => 'int32',
]
|
#
|
protected
static
|
boolean[]
|
$openAPINullables = [
'id' => false,
'username' => false,
'first_name' => false,
'last_name' => false,
'email' => false,
'password' => false,
'phone' => false,
'user_status' => false,
]
|
#
|
protected
|
boolean[]
|
$openAPINullablesSetToNull = []
|
#
|
protected
static
|
string[]
|
$attributeMap = [
'id' => 'id',
'username' => 'username',
'first_name' => 'firstName',
'last_name' => 'lastName',
'email' => 'email',
'password' => 'password',
'phone' => 'phone',
'user_status' => 'userStatus',
]
|
#
|
protected
static
|
string[]
|
$setters = [
'id' => 'setId',
'username' => 'setUsername',
'first_name' => 'setFirstName',
'last_name' => 'setLastName',
'email' => 'setEmail',
'password' => 'setPassword',
'phone' => 'setPhone',
'user_status' => 'setUserStatus',
]
|
#
|
protected
static
|
string[]
|
$getters = [
'id' => 'getId',
'username' => 'getUsername',
'first_name' => 'getFirstName',
'last_name' => 'getLastName',
'email' => 'getEmail',
'password' => 'getPassword',
'phone' => 'getPhone',
'user_status' => 'getUserStatus',
]
|
#
|
protected
|
mixed[]
|
$container = []
|
#
|