4 * This file is part of SwiftMailer.
5 * (c) 2004-2009 Chris Corbyn
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 //@require 'Swift/Mime/Attachment.php';
12 //@require 'Swift/Mime/ContentEncoder.php';
13 //@require 'Swift/KeyCache.php';
17 * An embedded file, in a multipart message.
20 * @author Chris Corbyn
22 class Swift_Mime_EmbeddedFile
extends Swift_Mime_Attachment
26 * Creates a new Attachment with $headers and $encoder.
27 * @param Swift_Mime_HeaderSet $headers
28 * @param Swift_Mime_ContentEncoder $encoder
29 * @param Swift_KeyCache $cache
30 * @param array $mimeTypes optional
32 public function __construct(Swift_Mime_HeaderSet
$headers,
33 Swift_Mime_ContentEncoder
$encoder, Swift_KeyCache
$cache,
36 parent
::__construct($headers, $encoder, $cache, $mimeTypes);
37 $this->setDisposition('inline');
38 $this->setId($this->getId());
42 * Get the nesting level of this EmbeddedFile.
43 * Returns {@link LEVEL_RELATED}.
46 public function getNestingLevel()
48 return self
::LEVEL_RELATED
;