/**
* Gets the mapping of a field.
*
* @param string $fieldName The field name.
* @return array The field mapping.
* @throws MappingException
*/
public function getFieldMapping($fieldName)
{
if (!isset($this->fieldMappings[$fieldName])) {
throw MappingException::mappingNotFound($this->name, $fieldName);
}
return $this->fieldMappings[$fieldName];
}