Log in
Model

Country

Magento\TwoFactorAuth\Model\Data\Country

What it does

This class represents a country data model used in Magento 2's Two-Factor Authentication system.

It stores country information including ID, ISO country code, country name, and international dialing code, primarily used for phone-based 2FA methods like SMS verification.

Developers would use this when implementing or customizing phone number validation and SMS-based authentication features.

Public Methods

  • getId()
  • setId()
  • getCode()
  • setCode()
  • getName()
  • setName()
  • getDialCode()
  • setDialCode()
  • getExtensionAttributes()
  • setExtensionAttributes()