src/Jaspersoft/Tool/CompositeDTOMapper.php
private static function reverseResolve($field, $map)
    {
        $backwardMap = array_reverse($map);
        if (array_key_exists($field, $backwardMap)) {
            return $backwardMap[$field];
        } else {
            // TODO: Appropriate Exception
            return null;
        }
    }
private static function reverseResolve($field, $map)
    {
        $backwardMap = array_reverse($map);
        if (array_key_exists($field, $backwardMap)) {
            return $backwardMap[$field];
        } else {
            // TODO: Appropriate Exception
            return null;
        }
    }
private static function reverseResolve ( $ field , $ map ) { $ backwardMap = array_reverse ( $ map ) ; if ( array_key_exists ( $ field , $ backwardMap ) ) { return $ backwardMap [ $ field ] ; } else { // TODO: Appropriate Exception return null ; } }
Return the key of a map given the value
This method assumes the data map has a one-to-one relationship

@param $field Field to be resolved
@param $map Map to use for resolution
@return string|null
Return the key of a map given the value This method assumes the data map has a one - to - one relationship