Created
March 9, 2015 11:01
-
-
Save mlebkowski/34421a4d2e43b67d6f77 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 | |
interface EmailNotifierInterface { | |
/** | |
* Client was successfully charged for a project | |
* | |
* context: payment_history model (with access to project & invoice) | |
*/ | |
const NOTIFICATION_CHARGED = 'charged'; | |
/** | |
* There was an error when processing a recurring payment | |
* | |
* context: project model | |
**/ | |
const NOTIFICATION_FAILED = 'failed'; | |
/** | |
* The payment failed and project was suspended | |
* | |
* context: project model | |
**/ | |
const NOTIFICATION_SUSPENDED = 'suspended'; | |
/** | |
* @param string $notificationType — one of the types defined above | |
* @param mixed $context — see the context description for each type | |
**/ | |
public function notify($notificationType, $context); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment