src/Models/Contact.php
public function getPhoneNumbersFormatted()
    {
        $formattedArray = [];
        foreach ($this->phoneNumbers as $key => $phoneNumber)
        {
            $formattedArray[$key] = [
                'number' => $phoneNumber->getNumber(),
                'extension' => null
            ];
        }

        return $formattedArray;
    }
public function getPhoneNumbersFormatted()
    {
        $formattedArray = [];
        foreach ($this->phoneNumbers as $key => $phoneNumber)
        {
            $formattedArray[$key] = [
                'number' => $phoneNumber->getNumber(),
                'extension' => null
            ];
        }

        return $formattedArray;
    }
public function getPhoneNumbersFormatted ( ) { $ formattedArray = [ ] ; foreach ( $ this -> phoneNumbers as $ key => $ phoneNumber ) { $ formattedArray [ $ key ] = [ 'number' => $ phoneNumber -> getNumber ( ) , 'extension' => null ] ; } return $ formattedArray ; }
Format the phone numbers for the API.
@return array
Format the phone numbers for the API .