private function getMapping(\SimpleXmlElement $mapping, $field)
    {
        $field = $mapping->$field;

        if (!$field->getName()) {
            return;
        }

        return $this->getField($field);
    }
private function getMapping(\SimpleXmlElement $mapping, $field)
    {
        $field = $mapping->$field;

        if (!$field->getName()) {
            return;
        }

        return $this->getField($field);
    }
private function getMapping ( \ SimpleXmlElement $ mapping , $ field ) { $ field = $ mapping -> $ field ; if ( ! $ field -> getName ( ) ) { return ; } return $ this -> getField ( $ field ) ; }
Return the value object for the mapping.

@param \SimpleXmlElement $mapping
@param mixed $field
Return the value object for the mapping .