class Contact extends BaseObject (View source)

Class Contact

Methods

__construct( array|mixed $data)

Builds collection entity.

from  BaseObject
array
relations()

No description

mixed|BaseObject
get( mixed $key, mixed $default = null)

Get an item from the collection by key.

from  BaseObject
array|void
mapRelatives()

Map property relatives to appropriate objects.

from  BaseObject
array|mixed
getRawResponse()

Returns raw response.

from  BaseObject
mixed
getRawResult($data)

Returns raw result.

from  BaseObject
mixed
getStatus()

Get Status of request.

from  BaseObject
mixed
__call($name, $arguments)

Magic method to get properties dynamically.

from  BaseObject
string
getPhoneNumber()

Contact's phone number.

string
getFirstName()

Contact's first name.

string
getLastName()

(Optional). Contact's last name.

int
getUserId()

(Optional). Contact's user identifier in Telegram.

Details

in BaseObject at line 19
__construct( array|mixed $data)

Builds collection entity.

Parameters

array|mixed $data

at line 20
array relations()

Return Value

array

in BaseObject at line 41
mixed|BaseObject get( mixed $key, mixed $default = null)

Get an item from the collection by key.

Parameters

mixed $key
mixed $default

Return Value

mixed|BaseObject

in BaseObject at line 55
array|void mapRelatives()

Map property relatives to appropriate objects.

Return Value

array|void

in BaseObject at line 80
array|mixed getRawResponse()

Returns raw response.

Return Value

array|mixed

in BaseObject at line 92
mixed getRawResult($data)

Returns raw result.

Parameters

$data

Return Value

mixed

in BaseObject at line 102
mixed getStatus()

Get Status of request.

Return Value

mixed

in BaseObject at line 116
mixed __call($name, $arguments)

Magic method to get properties dynamically.

Parameters

$name
$arguments

Return Value

mixed

at line 15
string getPhoneNumber()

Contact's phone number.

Return Value

string

at line 15
string getFirstName()

Contact's first name.

Return Value

string

at line 15
string getLastName()

(Optional). Contact's last name.

Return Value

string

at line 15
int getUserId()

(Optional). Contact's user identifier in Telegram.

Return Value

int