User
class User extends BaseObject (View source)
Class User.
Methods
array
relations()
Property relations.
mixed|BaseObject
get(
mixed $key,
mixed $default = null)
Get an item from the collection by key.
from
BaseObject
int
getId()
Unique identifier for this user or bot.
string
getFirstName()
User's or bot's first name.
string
getLastName()
(Optional). User's or bot's last name.
string
getUsername()
(Optional). User's or bot's username.
Details
in
BaseObject at line 17
__construct(
array|mixed $data)
Builds collection entity.
at line 19
array
relations()
Property relations.
in
BaseObject at line 39
mixed|BaseObject
get(
mixed $key,
mixed $default = null)
Get an item from the collection by key.
in
BaseObject at line 53
array|void
mapRelatives()
Map property relatives to appropriate objects.
in
BaseObject at line 83
array|mixed
getRawResponse()
Returns raw response.
in
BaseObject at line 95
mixed
getRawResult($data)
Returns raw result.
in
BaseObject at line 105
mixed
getStatus()
Get Status of request.
in
BaseObject at line 118
mixed
__call($name, $arguments)
Magic method to get properties dynamically.
at line 14
int
getId()
Unique identifier for this user or bot.
at line 14
string
getFirstName()
User's or bot's first name.
at line 14
string
getLastName()
(Optional). User's or bot's last name.
at line 14
string
getUsername()
(Optional). User's or bot's username.