Created
August 27, 2018 20:27
-
-
Save toretto460/793d5e78d56fc8dc9c8d006e8ab78309 to your computer and use it in GitHub Desktop.
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 | |
$productListing = new CircuitBreaker( | |
10, | |
function($searchKey) { | |
// $result is given from the api call | |
return $result; | |
} | |
); | |
$productsToShow = $productListing(['t-shirt'], []); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment