This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Horse { | |
// Calculate when the Horse needs feeding | |
public function calculate() { | |
// Check if there is session data about the Horse's feedings | |
if($_SESSION["last_feeding"]) { | |
$lastFeeding = $_SESSION["last_feeding"]; |