public function MobileNumber::toArray in Mobile Number 7
Converts object to an array.
Return value
array Array with the following elements:
- callable_number
- country
- local_number
- verified.
Overrides MobileNumberInterface::toArray
File
- src/
MobileNumber.php, line 131
Class
- MobileNumber
- Class MobileNumber handles mobile number validation and verification.
Code
public function toArray() {
return array(
'callable_number' => $this->callableNumber,
'country' => $this->country,
'local_number' => $this->localNumber,
'verified' => $this
->isVerified(),
);
}