PhoneNumberDto extends Dto
Table of Contents
Properties
- $countryCode : string
- $formattedPhoneNumber : string
- $isValidPhoneNumber : bool
- $phoneNumber : string
Methods
- __construct() : mixed
- getCachedCasts() : array<string|int, mixed>
- getCasts() : array<string, Caster>
- Method returns map, where key must relate to public property, and value specifies type of this property
- jsonSerialize() : mixed
- make() : mixed
- toArray() : array<string|int, mixed>
Properties
$countryCode read-only
public
string
$countryCode
= ''
$formattedPhoneNumber read-only
public
string
$formattedPhoneNumber
= ''
$isValidPhoneNumber read-only
public
bool
$isValidPhoneNumber
= false
$phoneNumber read-only
public
string
$phoneNumber
Methods
__construct()
public
__construct(string $phoneNumber[, string $countryCode = '' ][, string $formattedPhoneNumber = '' ][, bool $isValidPhoneNumber = false ]) : mixed
Parameters
- $phoneNumber : string
- $countryCode : string = ''
- $formattedPhoneNumber : string = ''
- $isValidPhoneNumber : bool = false
getCachedCasts()
public
getCachedCasts() : array<string|int, mixed>
Return values
array<string|int, mixed>getCasts()
Method returns map, where key must relate to public property, and value specifies type of this property
public
getCasts() : array<string, Caster>
use type hints and attribute \Bitrix\Mobile\Dto\Attributes\Collection instead
Return values
array<string, Caster> —property name => typecaster object
jsonSerialize()
public
jsonSerialize() : mixed
make()
public
static make([array<string|int, mixed>|null $fields = null ]) : mixed
Parameters
- $fields : array<string|int, mixed>|null = null
toArray()
public
toArray() : array<string|int, mixed>