1 | <?php |
||
16 | class Swift_Attachment extends Swift_Mime_Attachment |
||
|
|||
17 | { |
||
18 | /** |
||
19 | * Create a new Attachment. |
||
20 | * |
||
21 | * Details may be optionally provided to the constructor. |
||
22 | * |
||
23 | * @param string|Swift_OutputByteStream $data |
||
24 | * @param string $filename |
||
25 | * @param string $contentType |
||
26 | */ |
||
27 | 32 | public function __construct($data = null, $filename = null, $contentType = null) |
|
40 | |||
41 | /** |
||
42 | * Create a new Attachment. |
||
43 | * |
||
44 | * @param string|Swift_OutputByteStream $data |
||
45 | * @param string $filename |
||
46 | * @param string $contentType |
||
47 | * |
||
48 | * @return Swift_Mime_Attachment |
||
49 | */ |
||
50 | public static function newInstance($data = null, $filename = null, $contentType = null) |
||
54 | |||
55 | /** |
||
56 | * Create a new Attachment from a filesystem path. |
||
57 | * |
||
58 | * @param string $path |
||
59 | * @param string $contentType optional |
||
60 | * |
||
61 | * @return Swift_Mime_Attachment |
||
62 | */ |
||
63 | 10 | public static function fromPath($path, $contentType = null) |
|
71 | } |
||
72 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.