hasRequiredFields()
hasRequiredFields(array data) :
Check if the given array has all fields/keys defined in static::requiredFields.
Parameters
array | data |
AbstractMapper
Provides the basic functionality of Array-to-Struct / Struct-to-Array mappers.
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 |