TestEmail.php 504 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Mailer;
  3. use Tools\Mailer\Email;
  4. /**
  5. * Help to test Email
  6. */
  7. class TestEmail extends Email {
  8. /**
  9. * Wrap to protected method
  10. *
  11. * @param string $text
  12. * @param int $length
  13. * @return array
  14. */
  15. public function wrap($text, $length = Email::LINE_LENGTH_MUST) {
  16. return parent::_wrap($text, $length);
  17. }
  18. /**
  19. * @param string $attribute
  20. * @return mixed
  21. */
  22. public function getProtected($attribute) {
  23. $attribute = '_' . $attribute;
  24. return $this->$attribute;
  25. }
  26. }