protected function getRawValueAttribute(SimpleXMLElement $content, ?string $use, $default = null)
    {
        list($value, $attribute) = \explode('::', $use, 2);

        if (! empty($value)) {
            if (\is_null($parent = object_get($content, $value))) {
                return $default;
            }
        } else {
            $parent = $content;
        }

        $attributes = $parent->attributes();

        return data_get($attributes, $attribute, $default);
    }
protected function getRawValueAttribute(SimpleXMLElement $content, ?string $use, $default = null)
    {
        list($value, $attribute) = \explode('::', $use, 2);

        if (! empty($value)) {
            if (\is_null($parent = object_get($content, $value))) {
                return $default;
            }
        } else {
            $parent = $content;
        }

        $attributes = $parent->attributes();

        return data_get($attributes, $attribute, $default);
    }
protected function getRawValueAttribute ( SimpleXMLElement $ content , ? string $ use , $ default = null ) { list ( $ value , $ attribute ) = \ explode ( '::' , $ use , 2 ) ; if ( ! empty ( $ value ) ) { if ( \ is_null ( $ parent = object_get ( $ content , $ value ) ) ) { return $ default ; } } else { $ parent = $ content ; } $ attributes = $ parent -> attributes ( ) ; return data_get ( $ attributes , $ attribute , $ default ) ; }
Resolve value by uses as attribute as raw.

@param  \SimpleXMLElement  $content
@param  string|null  $use
@param  mixed  $default

@return mixed
Resolve value by uses as attribute as raw .