Last active
February 3, 2020 19:02
-
-
Save dcantu476/19f5a32d3d39356748170a2a3f469f17 to your computer and use it in GitHub Desktop.
Pizza Shop
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
build() { | |
// Add the Toppings! | |
if (userAllowsNotifications) { | |
notifyTheCustomerOfTheStatus("Pizza is ready for the oven!"); | |
} | |
if (employeeIsClockedIn && employeeIsResponsibleForTask) { | |
notifyTheEmployeesOfTheStatus("Pizza is ready for the oven!"); | |
} | |
} | |
bake() { | |
// Put it in the oven and let it bake! | |
if (userAllowsNotifications) { | |
notifyTheCustomerOfTheStatus("Pizza is done baking!"); | |
} | |
if (employeeIsClockedIn && employeeIsResponsibleForTask) { | |
notifyTheEmployeesOfTheStatus("Pizza is done baking!"); | |
} | |
} | |
box() { | |
// Let it cool and then box it up! | |
if (userAllowsNotifications) { | |
notifyTheCustomerOfTheStatus("Pizza in the box!"); | |
} | |
if (employeeIsClockedIn && employeeIsResponsibleForTask) { | |
notifyTheEmployeesOfTheStatus("Pizza in the box!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment