protected function getValueData(SimpleXMLElement $content, ?string $use, $default = null)
    {
        $value = $this->castValue(data_get($content, $use));

        if (empty($value) && ! \in_array($value, ['0'])) {
            return $default;
        }

        return $value;
    }
protected function getValueData(SimpleXMLElement $content, ?string $use, $default = null)
    {
        $value = $this->castValue(data_get($content, $use));

        if (empty($value) && ! \in_array($value, ['0'])) {
            return $default;
        }

        return $value;
    }
protected function getValueData ( SimpleXMLElement $ content , ? string $ use , $ default = null ) { $ value = $ this -> castValue ( data_get ( $ content , $ use ) ) ; if ( empty ( $ value ) && ! \ in_array ( $ value , [ '0' ] ) ) { return $ default ; } return $ value ; }
Resolve value by uses as data.

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

@return mixed
Resolve value by uses as data .