src/Adapter/ExtractAdapter.php
protected function resolveFieldValue($name, $row, Fluent $control)
    {
        $value = null;
        $model = data_get($row, $name);
        if (!is_null($model)) {
            $value = $model;
        }

        if (is_null($control->get('value'))) {
            return $value;
        }

        $value = $control->get('value');
        if ($value instanceof Closure) {
            $value = $value($row, $control);
        }

        return $value;
    }
protected function resolveFieldValue($name, $row, Fluent $control)
    {
        $value = null;
        $model = data_get($row, $name);
        if (!is_null($model)) {
            $value = $model;
        }

        if (is_null($control->get('value'))) {
            return $value;
        }

        $value = $control->get('value');
        if ($value instanceof Closure) {
            $value = $value($row, $control);
        }

        return $value;
    }
protected function resolveFieldValue ( $ name , $ row , Fluent $ control ) { $ value = null ; $ model = data_get ( $ row , $ name ) ; if ( ! is_null ( $ model ) ) { $ value = $ model ; } if ( is_null ( $ control -> get ( 'value' ) ) ) { return $ value ; } $ value = $ control -> get ( 'value' ) ; if ( $ value instanceof Closure ) { $ value = $ value ( $ row , $ control ) ; } return $ value ; }
resolve field value

@param String $name
@param String $row
@param Fluent $control
@return String | mixed
resolve field value