Base64HeaderEncoder.php 759B

12345678910111213141516171819202122232425262728293031323334353637
  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_once dirname(__FILE__) . '/../HeaderEncoder.php';
  10. require_once dirname(__FILE__) . '/../../Encoder/Base64Encoder.php';
  11. /**
  12. * Handles Base64 (B) Header Encoding in Swift Mailer.
  13. * @package Swift
  14. * @subpackage Mime
  15. * @author Chris Corbyn
  16. */
  17. class Swift_Mime_HeaderEncoder_Base64HeaderEncoder
  18. extends Swift_Encoder_Base64Encoder
  19. implements Swift_Mime_HeaderEncoder
  20. {
  21. /**
  22. * Get the name of this encoding scheme.
  23. * Returns the string 'B'.
  24. * @return string
  25. */
  26. public function getName()
  27. {
  28. return 'B';
  29. }
  30. }