12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
-
-
-
-
-
- class Swift_Image extends Swift_EmbeddedFile
- {
-
-
-
- public function __construct($data = null, $filename = null,
- $contentType = null)
- {
- parent::__construct($data, $filename, $contentType);
- }
-
-
-
- public static function newInstance($data = null, $filename = null,
- $contentType = null)
- {
- return new self($data, $filename, $contentType);
- }
-
-
-
- public static function fromPath($path)
- {
- $image = self::newInstance()->setFile(
- new Swift_ByteStream_FileByteStream($path)
- );
- return $image;
- }
-
- }
|