expectedCookTime() - $elapsed_minutes; } public function totalPreparationTime($layers_to_prep): int { return $layers_to_prep * 2; } public function totalElapsedTime($layers_to_prep, $elapsed_minutes): int { return $this->totalPreparationTime($layers_to_prep) + ($this->expectedCookTime() - $this->remainingCookTime($elapsed_minutes)); } public function alarm(): string { return "Ding!"; } }