1 | <?php |
||
16 | class Swift_Image extends Swift_EmbeddedFile |
||
|
|||
17 | { |
||
18 | /** |
||
19 | * Create a new EmbeddedFile. |
||
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 | 4 | public function __construct($data = null, $filename = null, $contentType = null) |
|
31 | |||
32 | /** |
||
33 | * Create a new Image. |
||
34 | * |
||
35 | * @param string|Swift_OutputByteStream $data |
||
36 | * @param string $filename |
||
37 | * @param string $contentType |
||
38 | * |
||
39 | * @return self |
||
40 | */ |
||
41 | 1 | public static function newInstance($data = null, $filename = null, $contentType = null) |
|
45 | |||
46 | /** |
||
47 | * Create a new Image from a filesystem path. |
||
48 | * |
||
49 | * @param string $path |
||
50 | * |
||
51 | * @return self |
||
52 | */ |
||
53 | 1 | public static function fromPath($path) |
|
61 | } |
||
62 |
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.