A hysteresis approach to phase-field models with thermal memory