TYPO3  7.6
vendor/swiftmailer/swiftmailer/lib/classes/Swift/Image.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of SwiftMailer.
5  * (c) 2004-2009 Chris Corbyn
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10 
17 {
27  public function __construct($data = null, $filename = null, $contentType = null)
28  {
29  parent::__construct($data, $filename, $contentType);
30  }
31 
41  public static function newInstance($data = null, $filename = null, $contentType = null)
42  {
43  return new self($data, $filename, $contentType);
44  }
45 
53  public static function fromPath($path)
54  {
55  $image = self::newInstance()->setFile(
57  );
58 
59  return $image;
60  }
61 }