public static function getReferenceFieldName(string $storeAs, string $pathPrefix = '') : string
    {
        if ($storeAs === self::REFERENCE_STORE_AS_ID) {
            return $pathPrefix;
        }

        return ($pathPrefix ? $pathPrefix . '.' : '') . static::getReferencePrefix($storeAs) . 'id';
    }
public static function getReferenceFieldName(string $storeAs, string $pathPrefix = '') : string
    {
        if ($storeAs === self::REFERENCE_STORE_AS_ID) {
            return $pathPrefix;
        }

        return ($pathPrefix ? $pathPrefix . '.' : '') . static::getReferencePrefix($storeAs) . 'id';
    }
public static function getReferenceFieldName ( string $ storeAs , string $ pathPrefix = '' ) : string { if ( $ storeAs === self :: REFERENCE_STORE_AS_ID ) { return $ pathPrefix ; } return ( $ pathPrefix ? $ pathPrefix . '.' : '' ) . static :: getReferencePrefix ( $ storeAs ) . 'id' ; }
Returns a fully qualified field name for a given reference

@internal

@param string $pathPrefix The field path prefix
Returns a fully qualified field name for a given reference