User
class User implements ModelInterface, ArrayAccess, JsonSerializable
User Class Doc Comment
Constants
DISCRIMINATOR |
|
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.
Constructor
Show all the invalid properties with reasons.
Validate all the properties in the model return true if all passed
Gets id
Gets username
Sets username
Gets first_name
Sets first_name
Gets last_name
Sets last_name
Gets email
Gets password
Sets password
Gets phone
Gets user_status
Sets user_status
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 117
static array
openAPITypes()
Array of property to type mappings. Used for (de)serialization
at line 127
static array
openAPIFormats()
Array of property to format mappings. Used for (de)serialization
at line 137
static protected array
openAPINullables()
Array of nullable properties
at line 158
static bool
isNullable(string $property)
Checks if a property is nullable
at line 169
bool
isNullableSetToNull(string $property)
Checks if a nullable property is set to null.
at line 229
static array
attributeMap()
Array of attributes where the key is the local name, and the value is the original name
at line 239
static array
setters()
Array of attributes to setter functions (for deserialization of responses)
at line 249
static array
getters()
Array of attributes to getter functions (for serialization of requests)
at line 259
string
getModelName()
The original name of the model.
at line 278
__construct(array $data = null)
Constructor
at line 313
array
listInvalidProperties()
Show all the invalid properties with reasons.
at line 326
bool
valid()
Validate all the properties in the model return true if all passed
at line 337
int|null
getId()
Gets id
at line 349
User
setId(int|null $id)
Sets id
at line 366
string|null
getUsername()
Gets username
at line 378
User
setUsername(string|null $username)
Sets username
at line 395
string|null
getFirstName()
Gets first_name
at line 407
User
setFirstName(string|null $first_name)
Sets first_name
at line 424
string|null
getLastName()
Gets last_name
at line 436
User
setLastName(string|null $last_name)
Sets last_name
at line 453
string|null
getEmail()
Gets email
at line 465
User
setEmail(string|null $email)
Sets email
at line 482
string|null
getPassword()
Gets password
at line 494
User
setPassword(string|null $password)
Sets password
at line 511
string|null
getPhone()
Gets phone
at line 523
User
setPhone(string|null $phone)
Sets phone
at line 540
int|null
getUserStatus()
Gets user_status
at line 552
User
setUserStatus(int|null $user_status)
Sets user_status
at line 570
bool
offsetExists(int $offset)
Returns true if offset exists. False otherwise.
at line 582
mixed|null
offsetGet(int $offset)
Gets offset.
at line 596
void
offsetSet(int|null $offset, mixed $value)
Sets value based on offset.
at line 612
void
offsetUnset(int $offset)
Unsets offset.
at line 624
mixed
jsonSerialize()
Serializes the object to a value that can be serialized natively by json_encode().
at line 635
string
__toString()
Gets the string presentation of the object
at line 648
string
toHeaderValue()
Gets a header-safe presentation of the object