src/Graviton/DocumentBundle/DependencyInjection/Compiler/Utils/DocumentMap.php
private function getSerializerFieldType(\DOMElement $field)
    {
        if ($field->getAttribute('type')) {
            return $field->getAttribute('type');
        }

        $xpath = new \DOMXPath($field->ownerDocument);

        $type = $xpath->query('type', $field)->item(0);
        return $type === null ? null : $type->nodeValue;
    }
private function getSerializerFieldType(\DOMElement $field)
    {
        if ($field->getAttribute('type')) {
            return $field->getAttribute('type');
        }

        $xpath = new \DOMXPath($field->ownerDocument);

        $type = $xpath->query('type', $field)->item(0);
        return $type === null ? null : $type->nodeValue;
    }
private function getSerializerFieldType ( \ DOMElement $ field ) { if ( $ field -> getAttribute ( 'type' ) ) { return $ field -> getAttribute ( 'type' ) ; } $ xpath = new \ DOMXPath ( $ field -> ownerDocument ) ; $ type = $ xpath -> query ( 'type' , $ field ) -> item ( 0 ) ; return $ type === null ? null : $ type -> nodeValue ; }
Get serializer field type

@param \DOMElement $field Field node
@return string|null
Get serializer field type