/framework/vendor/swift/lib/classes/Swift/Plugins/Reporter.php

http://zoop.googlecode.com/ · PHP · 36 lines · 7 code · 7 blank · 22 comment · 0 complexity · 7f5fe4e543f7f17e5f56122f506beb5f MD5 · raw file

  1. <?php
  2. /*
  3. * This file is part of SwiftMailer.
  4. * (c) 2004-2009 Chris Corbyn
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. //@require 'Swift/Mime/Message.php';
  10. /**
  11. * The Reporter plugin sends pass/fail notification to a Reporter.
  12. * @package Swift
  13. * @subpackage Plugins
  14. * @author Chris Corbyn
  15. */
  16. interface Swift_Plugins_Reporter
  17. {
  18. /** The recipient was accepted for delivery */
  19. const RESULT_PASS = 0x01;
  20. /** The recipient could not be accepted */
  21. const RESULT_FAIL = 0x10;
  22. /**
  23. * Notifies this ReportNotifier that $address failed or succeeded.
  24. * @param Swift_Mime_Message $message
  25. * @param string $address
  26. * @param int $result from {@link RESULT_PASS, RESULT_FAIL}
  27. */
  28. public function notify(Swift_Mime_Message $message, $address, $result);
  29. }