Thermoelasticity of Moore–Gibson–Thompson type with history dependence in the temperature