hasRequiredFields()
hasRequiredFields(array data) :
Check if the given array has all fields/keys defined in static::requiredFields.
Parameters
array | data |
Mapper for Google Authenticator settings
In some places, the user-specific settings for two-factor authentication can only be obtained in the form of an associative array. The mapper class maps this array to a specific type of object: a Struct. Thus, we benefit from a clean interface and code completion.
createStructFromArray(array data) :
Create a struct using data from the given array.
Any child class has to initialize static::requiredFields - otherwise an exception is thrown.
array | data |