protected function getDataField($dataRow, $name, \Closure $emptyData = null)
    {
        $value = null !== $name && '' !== $name
            ? $this->propertyAccessor->getValue($dataRow, $name)
            : null;

        if (null === $value && $emptyData instanceof \Closure) {
            $value = $emptyData($dataRow, $name);
        }

        return $value;
    }
protected function getDataField($dataRow, $name, \Closure $emptyData = null)
    {
        $value = null !== $name && '' !== $name
            ? $this->propertyAccessor->getValue($dataRow, $name)
            : null;

        if (null === $value && $emptyData instanceof \Closure) {
            $value = $emptyData($dataRow, $name);
        }

        return $value;
    }
protected function getDataField ( $ dataRow , $ name , \ Closure $ emptyData = null ) { $ value = null !== $ name && '' !== $ name ? $ this -> propertyAccessor -> getValue ( $ dataRow , $ name ) : null ; if ( null === $ value && $ emptyData instanceof \ Closure ) { $ value = $ emptyData ( $ dataRow , $ name ) ; } return $ value ; }
Get the field value of data row.

@param array|object  $dataRow
@param string        $name
@param \Closure|null $emptyData

@return mixed|null
Get the field value of data row .