Skip to content

Instantly share code, notes, and snippets.

@stevebauman
Created June 29, 2018 14:44
Show Gist options
  • Save stevebauman/e7e0afc281a49dc4509e522569fdbf1b to your computer and use it in GitHub Desktop.
Save stevebauman/e7e0afc281a49dc4509e522569fdbf1b to your computer and use it in GitHub Desktop.
Wait Times - How To
// 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