1 <?php
2 /* --------------------------------------------------------------
3 EmailAttachmentInterface.inc.php 2015-01-29 gm
4 Gambio GmbH
5 http://www.gambio.de
6 Copyright (c) 2015 Gambio GmbH
7 Released under the GNU General Public License (Version 2)
8 [http://www.gnu.org/licenses/gpl-2.0.html]
9 --------------------------------------------------------------
10 */
11
12 /**
13 * Interface EmailAttachmentInterface
14 *
15 * @category System
16 * @package Email
17 * @subpackage Interfaces
18 */
19 interface EmailAttachmentInterface
20 {
21 /**
22 * Sets the path of an email attachment.
23 *
24 * @param AttachmentPathInterface $path Attachment path.
25 */
26 public function setPath(AttachmentPathInterface $path);
27
28
29 /**
30 * Returns the path of an email attachment.
31 *
32 * @param bool $absolutePath (optional) Whether to return the absolute path or the relative one.
33 *
34 * @return AttachmentPathInterface Attachment path.
35 */
36 public function getPath($absolutePath = true);
37
38
39 /**
40 * Sets the name of an email attachment.
41 *
42 * @param AttachmentNameInterface $name Attachment name.
43 */
44 public function setName(AttachmentNameInterface $name);
45
46
47 /**
48 * Returns the name of an email attachment.
49 *
50 * @return AttachmentNameInterface Attachment name.
51 */
52 public function getName();
53 }