Created
June 29, 2018 14:44
-
-
Save stevebauman/e7e0afc281a49dc4509e522569fdbf1b to your computer and use it in GitHub Desktop.
Wait Times - How To
This file contains hidden or 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
| // Require the class files. | |
| require 'Reader.php' | |
| require 'ToUs.php'; | |
| require 'ToCanada.php'; | |
| // Create the reader instances. | |
| $toUsReader = new ToUs(); | |
| $toCanadaReader = new ToCanada(); | |
| // Retrieve to US wait times. | |
| $toUsWaitCars = $toUsReader->getWaitFor(Reader::CAR); | |
| $toUsWaitTrucks = $toUsReader->getWaitFor(Reader::TRUCK); | |
| // Retrieve to Canada wait times. | |
| $toCanadaWaitCars = $toCanadaReader->getWaitFor(Reader::CAR); | |
| $toCanadaWaitTrucks = $toCanadaReader->getWaitFor(Reader::TRUCK); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment