1
0

IAttachment.php 683 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Mail;
  8. /**
  9. * Interface IAttachment
  10. *
  11. * @since 13.0.0
  12. */
  13. interface IAttachment {
  14. /**
  15. * @param string $filename
  16. * @return IAttachment
  17. * @since 13.0.0
  18. */
  19. public function setFilename(string $filename): IAttachment;
  20. /**
  21. * @param string $contentType
  22. * @return IAttachment
  23. * @since 13.0.0
  24. */
  25. public function setContentType(string $contentType): IAttachment;
  26. /**
  27. * @param string $body
  28. * @return IAttachment
  29. * @since 13.0.0
  30. */
  31. public function setBody(string $body): IAttachment;
  32. }