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

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.

__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

string|null
getUsername()

Gets username

setUsername(string|null $username)

Sets username

string|null
getFirstName()

Gets first_name

setFirstName(string|null $first_name)

Sets first_name

string|null
getLastName()

Gets last_name

setLastName(string|null $last_name)

Sets last_name

string|null
getEmail()

Gets email

setEmail(string|null $email)

Sets email

string|null
getPassword()

Gets password

setPassword(string|null $password)

Sets password

string|null
getPhone()

Gets phone

setPhone(string|null $phone)

Sets phone

int|null
getUserStatus()

Gets user_status

setUserStatus(int|null $user_status)

Sets user_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 117
static array openAPITypes()

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

Return Value

array

at line 127
static array openAPIFormats()

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

Return Value

array

at line 137
static protected array openAPINullables()

Array of nullable properties

Return Value

array

at line 158
static bool isNullable(string $property)

Checks if a property is nullable

Parameters

string $property

Return Value

bool

at line 169
bool isNullableSetToNull(string $property)

Checks if a nullable property is set to null.

Parameters

string $property

Return Value

bool

at line 229
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 239
static array setters()

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

Return Value

array

at line 249
static array getters()

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

Return Value

array

at line 259
string getModelName()

The original name of the model.

Return Value

string

at line 278
__construct(array $data = null)

Constructor

Parameters

array $data

Associated array of property values initializing the model

at line 313
array listInvalidProperties()

Show all the invalid properties with reasons.

Return Value

array

at line 326
bool valid()

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

Return Value

bool

at line 337
int|null getId()

Gets id

Return Value

int|null

at line 349
User setId(int|null $id)

Sets id

Parameters

int|null $id id

Return Value

User

at line 366
string|null getUsername()

Gets username

Return Value

string|null

at line 378
User setUsername(string|null $username)

Sets username

Parameters

string|null $username username

Return Value

User

at line 395
string|null getFirstName()

Gets first_name

Return Value

string|null

at line 407
User setFirstName(string|null $first_name)

Sets first_name

Parameters

string|null $first_name first_name

Return Value

User

at line 424
string|null getLastName()

Gets last_name

Return Value

string|null

at line 436
User setLastName(string|null $last_name)

Sets last_name

Parameters

string|null $last_name last_name

Return Value

User

at line 453
string|null getEmail()

Gets email

Return Value

string|null

at line 465
User setEmail(string|null $email)

Sets email

Parameters

string|null $email email

Return Value

User

at line 482
string|null getPassword()

Gets password

Return Value

string|null

at line 494
User setPassword(string|null $password)

Sets password

Parameters

string|null $password password

Return Value

User

at line 511
string|null getPhone()

Gets phone

Return Value

string|null

at line 523
User setPhone(string|null $phone)

Sets phone

Parameters

string|null $phone phone

Return Value

User

at line 540
int|null getUserStatus()

Gets user_status

Return Value

int|null

at line 552
User setUserStatus(int|null $user_status)

Sets user_status

Parameters

int|null $user_status

User Status

Return Value

User

at line 570
bool offsetExists(int $offset)

Returns true if offset exists. False otherwise.

Parameters

int $offset Offset

Return Value

bool

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

Gets offset.

Parameters

int $offset Offset

Return Value

mixed|null

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

Unsets offset.

Parameters

int $offset Offset

Return Value

void

at line 624
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 635
string __toString()

Gets the string presentation of the object

Return Value

string

at line 648
string toHeaderValue()

Gets a header-safe presentation of the object

Return Value

string