Skip to content

Instantly share code, notes, and snippets.

@mlebkowski
Created March 9, 2015 11:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlebkowski/34421a4d2e43b67d6f77 to your computer and use it in GitHub Desktop.
Save mlebkowski/34421a4d2e43b67d6f77 to your computer and use it in GitHub Desktop.
<?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