Skip to content

Instantly share code, notes, and snippets.

@hungtrinh
Created November 3, 2019 15:05
Show Gist options
  • Save hungtrinh/c18e1b2680b2d62ced8d9d180076eb1f to your computer and use it in GitHub Desktop.
Save hungtrinh/c18e1b2680b2d62ced8d9d180076eb1f to your computer and use it in GitHub Desktop.
minimal production code for first requirement
<?php
function discountRateByMembershipType ($membershipType) {
if ('platinum' === $membershipType) return 0.15;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment